On Aug 19, 10:45 pm, Krishnakant Mane <[email protected]> wrote:
> On Friday 20 August 2010 04:20 AM, Wyatt Baldwin wrote:> You can put Mako/JS 
> templates in your templates directory and then
> > render them from your HTML template with something like<script src="$
> > {url('/templates/javascripts/whizbang.js')}"></script>.
>
> NO, the problem at hand is not that complex and large.

I've avoided .js.mako templates mainly because those templates can't
be minimized along with the rest of an app's JS files. I prefer to
pass a minimal set of configuration values via the template context as
JSON and then handle the dynamic JS stuff strictly in JS.

This could be over-engineering for some situations, but I just wanted
to throw out the idea.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to