I\'m writing a command-line tool that will ultimately output an HTML report. The tool is written in Ruby. (I am not using Rails). I\'m trying to keep the logic of the applic
I'm needing this in a Sinatra app, and I find that I can just call it the same way I called the original:
In the sinatra app, I call the index:
erb :index
Then, in the index template, I can do the same for any sub-template:
<%= erb :controls %> ..which shows the 'controls.erb' template. 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
..which shows the 'controls.erb' template.