Wormwood
Wormwood is an event-driven template rendering utility inspired by Jekyll. It's great for rendering markdown, e.g., a README file, as you edit.
Wormwood will:
- watch for changes to a template directory ( ./ by default)
- render the changed files (via Tilt) into a layout
- write the rendered, laid-out content to an output directory ( ./ by default).
Installation
$ gem install wormwood
Usage
- Create a file Tilt knows how to render, e.g., foo.md
- Run
wormwood
- Edit foo.md and observe the creation of foo.html
Note: Wormwood will generate a file called <layout name>.erb in your source directory if a file named "layout" doesn't already exist. Feel free to hack it.
Configuration
Wormwood defines a few configuration options:
--source
The directory containing the template and layout files. Defaults to "./"
--destination
The directory to write rendered files to. Defaults to "./"
--layout
The layout file name (without extension). Defaults to "layout".
--variable
The name of the variable used to insert rendered content into the layout. Defaults to "content".
Developing
- Develop
- Build gem
rake build
- Install gem
rake install
- Run tests
rake test
Changelog
- 0.0.7 generates default layout
- 0.0.6 adds layout support
License
Copyright 2013 Erik Eldridge
Licensed under the MIT License