Ruby w/ Sinatra: what is the equivalent of a .js.erb from rails?

前端 未结 3 1464
天命终不由人
天命终不由人 2021-02-06 17:52

.js.erb\'s are nice, because you can use them to replace parts of a page without having to leave the current page, which gives a cleaner and unchopped up feel to the site / app.

3条回答
  •  旧时难觅i
    2021-02-06 18:26

    sinatra really isn't meant to be a full stack framework. Its supposed to get you on the road very quickly. You could use an erb separately and then load into your sinatra code.

提交回复
热议问题