Changeset 2400 for package_branches/invirt-web/cherrypy/code/templates
- Timestamp:
- Aug 9, 2009, 6:45:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/templates/functions.mako
r2393 r2400 39 39 % endif 40 40 </%def> 41 42 <%! 43 def jquote(string): 44 return "'" + string.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + "'" 45 %> 46 47 <%def name="helppopup(subj)"> 48 ## Return HTML code for a (?) link to a specified help topic 49 <span class="helplink"><a href="help?simple=true;subject=${subj | u}" target="_blank" onclick="return helppopup(${subj | jquote,u})">(?)</a></span> 50 </%def>
Note: See TracChangeset
for help on using the changeset viewer.