Hello,
I have a beginner question. I have some small js scripts that need to
be altered a bit before being served.
For now I use a clumsy inline in-code multiline string and string
replacement in the python code itself to return a string, which I then
use the webhelpers tag function to enclose in a script tag.
And I was wondering if I could separate these small snippets into
separate js files, but these files would include placeholders for the
strings ( ${string_replace} ) to be replaced from within my code with
custom strings.
I wonder what is the best practice for my case? And if using a
template renderer is the best solution, how is that best made? For
example is the Chameleon text template suitable for this job?
--
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.