summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-07 00:24:51 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-07 00:24:51 +0200
commitf11fff031cbd632b50951bc9df04efa827cd59f7 (patch)
treee4d5372de7cec6de4fcf9d1545bd0ab33ad8409b /templates
parent57a848b2e1510ba7108b986d5a7a696959c5e732 (diff)
downloadweb-f11fff031cbd632b50951bc9df04efa827cd59f7.tar.gz
web-f11fff031cbd632b50951bc9df04efa827cd59f7.tar.bz2
web-f11fff031cbd632b50951bc9df04efa827cd59f7.zip
Add highlighting support
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()">