Rakyll
Hakyll-inspied static site generator.
Installation
Add this line to your application's Gemfile:
gem 'rakyll'And then execute:
$ bundle
Or install it yourself as:
$ gem install rakyll
Usage
This is an example.
- You need
templatesdirectory.- You write html template with erb, and place it in
templates.
- You write html template with erb, and place it in
- You might need a directory to place markdown contents.
- In the example above, its name is
products.
- In the example above, its name is
- You might need a directory to place static files(js, css, images).
- In the example above, its name is
assets.
- In the example above, its name is
Then, write site.rb, execute ruby site.rb, and _site directory will be generated.