##// END OF EJS Templates
settings: re-use attached request global config for performance...
settings: re-use attached request global config for performance - since we *always* generate a global config and register it into request make use of it, and not rely on the get_all_settings heavy logic that makes it slow to fetch because of cache checks. Within single request we're fine to re-use it when ever request attribute is available

File last commit:

r3755:2e97cecb new-ui
r4200:007322e6 stable
Show More
file_content.mako
9 lines | 261 B | application/x-mako | MakoHtmlLexer
<%namespace name="sourceblock" file="/codeblocks/source.mako"/>
<%def name="render_lines(lines)">
<table class="cb codehilite">
%for line_num, tokens in enumerate(lines, 1):
${sourceblock.render_line(line_num, tokens)}
%endfor
</table>
</%def>