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.
- 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).
$ gem install wormwood
- Create a file Tilt knows how to render, e.g., foo.md
- 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.
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".
- Build gem
- Install gem
- Run tests
- 0.0.7 generates default layout
- 0.0.6 adds layout support
Copyright 2013 Erik Eldridge
Licensed under the MIT License