guard-gimli
gimli guard allows to automatically convert your files when markup is changed
Install
Please be sure to have Guard installed before continue.
Install the gem:
gem install guard-gimliAdd guard definition to your Guardfile by running this command:
guard init gimliUsage
All commands originate from the directory where the file is located
Please read Guard usage doc and gimli usage doc
Guardfile
You can adapt your markup files like you want.
Please read Guard doc for more info about Guardfile DSL.
guard 'gimli' do
watch(%r{.+\.(md|mkdn?|mdown|markdown|textile|rdoc|org|creole|re?st(\.txt)?|asciidoc|pod|\d|(media)?wiki)})
endOptions
gimli guard have two options that you can set like this:
guard 'gimli', :outputdir => 'build', :stylesheet => 'style.css' do
...
endAvailable options:
:outputdir => 'build' # default nil ie. directory of file
:stylesheet => 'style.css' # default nil ie. only the standard cssSee gimli doc for more info.