tag:blogger.com,1999:blog-3728237926407785171.post431690253703003916..comments2016-08-25T07:26:57.790-06:00Comments on CoffeeScript Love: Eco Templates in Rails 3.1 Asset PipelineChris Smithhttps://plus.google.com/117231929130530196454[email protected]Blogger6125tag:blogger.com,1999:blog-3728237926407785171.post-46786940951077013272016-02-07T21:16:47.992-07:002016-02-07T21:16:47.992-07:00This is what I was looking for, thanks :DThis is what I was looking for, thanks :DRyo Yamadahttp://www.blogger.com/profile/11184065443495363538[email protected]tag:blogger.com,1999:blog-3728237926407785171.post-14426207704565749172012-07-12T14:38:57.512-06:002012-07-12T14:38:57.512-06:00Has anyone used these with requirejs or requirejs-...Has anyone used these with requirejs or requirejs-rails?billmaghttp://www.blogger.com/profile/07857400127575953672[email protected]tag:blogger.com,1999:blog-3728237926407785171.post-71832702562612916692012-02-21T14:42:33.013-07:002012-02-21T14:42:33.013-07:00Just a quick note -- the JST var won&#39;t be defi...Just a quick note -- the JST var won&#39;t be defined (you&#39;ll get a &quot;Uncaught ReferenceError: JST is not defined&quot;) unless you &#39;require&#39; your templates like any other javascript file (eg, in application.js, //=require todos/views/todo).<br /><br />This includes the compiled eco template in the rest of your assets, defining JST[&#39;todo&#39;]. (Somehow I missed this -- I guess I thought it would just be magic?)<br /><br />Thanks for the writeup, helped a lot.David Rhttp://www.blogger.com/profile/13123738759527388942[email protected]tag:blogger.com,1999:blog-3728237926407785171.post-81657228082024736702012-01-24T13:56:57.000-07:002012-01-24T13:56:57.000-07:00Ken, I wrote a short tutorial about context and ...Ken, <br /><br />I wrote a short tutorial about context and helpers in Eco: <br /><br />http://backbonecoffeescript.com/eco-helpers-tutorial@quartzmohttp://www.blogger.com/profile/15222755899473111565[email protected]tag:blogger.com,1999:blog-3728237926407785171.post-45301918812214562532012-01-18T10:40:25.849-07:002012-01-18T10:40:25.849-07:00Ken, the short answer is that with Eco, it&#39;s u...Ken, the short answer is that with Eco, it&#39;s up to you to do it in ad-hoc fashion. Just include any helper functions you want as properties on the &quot;context&quot; object you pass in when rendering. Check back here again in a couple days, I will put up an interactive Try Eco page illustrating this.@quartzmohttp://www.blogger.com/profile/15222755899473111565[email protected]tag:blogger.com,1999:blog-3728237926407785171.post-69898854920763322682012-01-16T06:42:19.067-07:002012-01-16T06:42:19.067-07:00In your slides, you had said &quot;It’s up to you ...In your slides, you had said &quot;It’s up to you to prepare your context, but once you do, help is at hand.&quot;. Can you give an example of how to wire up context helpers?Ken Collinshttp://www.blogger.com/profile/04397597320910156592[email protected]