Very early days. Based on coffeescript and eco You can define templates, partials and data files.
npm install genstatic
Create an example directory via
genstatic example /path/to/example
Then you can run
genstatic process /path/to/example
to generate the website in example/www.
If you want to create an empty project
genstatic create /path/to/project
By default every page will have the following values set:
template (defaults to "index") filename basedir
Other variables can be set inside the file itself, by declaring them on top:
---
title = "Foo page"
---
Site wide variables can be set in config.coffee
These default to:
extension : '.html'
templates : './templates'
assets : './assets'
data : './data'
output : './www'
These values can be overwritten in config.coffee
By default available is the partial helper
<%- @partial 'mytemplatename', { myvar : 'myvalue' } %>
Additional helpers can be defined in the file called helpers.coffee