Json to erb
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.document
.gitignore
.rspec
Gemfile
Gemfile.lock
LICENSE.txt
README.rdoc
Rakefile
jsontoerb.gemspec

README.rdoc

jsontoerb

JsonToErb gem allows to render erb templates with json data with console command

After gem is installed you should be able to execute following command: 'jsontoerb <path_to_erb_template> <json_data>' and rendered template will be returned as output. One thing to be aware of: json key has to be quoted with “.

Example: template.erb <div>parmas</div> command: jsontoerb template.erb {"content": "Sweet!"} output: <div>Sweet!</div>

Copyright

Copyright © 2013 Andriy Romanov. See LICENSE.txt for further details.