Genecon
genecon is text converter. genecon convert erb file to your favorite format.
Installation
Add this line to your application's Gemfile:
gem 'genecon'
And then execute:
$ bundle
Or install it yourself as:
$ gem install genecon
Usage
genecon require template(erb)
and config(yaml)
.
template(erb)
# <%= @config['title'] %>
## <%= @config['sub_title'] %>
* <%= @config['date'] %>
* <%= @config['url'] %>
* <%= @config['email'] %>
config(yaml)
title : this is title
sub_title : here is sub_title
date: 2012-12-21
url: http://www.google.co.jp
email: foo@foovar.com
Command
genecon -t FILE -c CONFIG
genecon --template FILE --config CONFIG
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request