backbone.js - How to use Ruby code inside JST files? -


i using jammit package assets. 1 of things package files .jst extension , make them available in window.jst namespace in browser. however, i've been looking way make templates dynamic, , i'm not sure how or if it's possible.

what alternatives have if cannot make jst files dynamic?

as far can tell rails 3.0 isn't possible. jammit assumes jst files javascript files. maybe in later versions may add ability. wouldn't count on happening time soon.

if able upgrade rails 3.1 can replace jammit asset pipeline allows run through erb or ever language want before ends jst file.

kliment mamykin made walkthrough upgrade rails 3.0 rails 3.1.rc4 asset pipeline enabled. http://mamykin.com/2011/07/03/upgrading-to-rails31-rc4.html


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -