On Sun, Dec 22, 2013 at 7:21 PM, Prateek Jadhwani <[email protected] > wrote:
> On Sunday, December 22, 2013 6:14:44 PM UTC-5, Rick Waldron wrote: > > Not sure where such things would be posted/published, but I will gladly > do > > > > this if someone can direct me... Anyway, here is my original post to > > > > dev-gaia that includes a step by step: > > > > https://groups.google.com/forum/#!topic/mozilla.dev.gaia/wQ8JLkYi7EI > > > > > > > > Rick > > > > > > > > > > > > On Sun, Dec 22, 2013 at 8:29 AM, Prateek Jadhwani > > > > > wrote: > > > > > > > > > Hey Guys, > > > > > > > > > > While looking at the Gaia code, i came across this file Template.js in > the > > > > > Shared folder. Is there any document that shows how to use this > templating > > > > > engine? > > > > > > > > > > Thanks > > > > > _______________________________________________ > > > > > dev-b2g mailing list > > > > > > > > > > https://lists.mozilla.org/listinfo/dev-b2g > > > > > > > Thanks Rick. I looked at the link that you sent me. Does it improve > performance if you store a template in comments? I mean, i have worked on > templating engines like Underscore.js and Handlebars.js. All of these > engines store templates in scripts. Is there any particular reason to store > it in a comment? > This has nothing to do with performance and everything to do with working within the limitations of FirefoxOS's Content Security Policy which does not allow inline scripts. Trust me, this approach wasn't my first choice. Rick _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
