summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/root.mako7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/root.mako b/templates/root.mako
index c7c7497..c20704d 100644
--- a/templates/root.mako
+++ b/templates/root.mako
@@ -36,12 +36,19 @@
</body>
</html>
+<%namespace name="_hl" module="highlighting"/>
+
+<%def name="hl(lang)">
+ <div><pre class="box2">${_hl.highlight(capture(caller.body), lang)}</pre></div>
+</%def>
+
<%def name="title()">
Portato
</%def>
<%def name="style()">
<link href=${"/static/css/style.css" | url} rel="stylesheet" type="text/css" />
+ ${_hl.get_css()}
</%def>
<%def name="footer()">