Hi, I'd like to print a string "myscript.js" in HTML output. The "myscript" part of the output is passed in as a variable. However, the "." seems to be causing the templator to interpret the "." as Python code and I get an error:
AttributeError: 'str' object has no attribute 'js' Here's the template: $def with(myscript) $myscript.js Similarly, if I want to concatenate a static string with a variable in a template, is there a way to do that? In other words, I can use $$ to escape $, is there a way to escape "." and "" (empty string to separate the variable and the static text)? Thanks, Jack
-- You received this message because you are subscribed to the Google Groups "web.py" 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/webpy?hl=en.
