Project

jsontoerb

0.0
No commit activity in last 3 years
No release in over 3 years
Gem to render erb template using json data
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.2.0
~> 1.8.4
~> 3.12
~> 2.8.0
 Project Readme

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 © 2013 Andriy Romanov. See LICENSE.txt for further details.