Add md template util.

This breaks the _() step out of the existing _md() template util for
conveniently inserting markdown that has already been translated.
This commit is contained in:
Max Goodman
2012-10-15 12:21:12 -07:00
parent 0ac2ebb726
commit 81e61ff085

View File

@@ -601,6 +601,10 @@ ${unsafe(txt)}
%endif
</%def>
<%def name="_md(text, wrap=False)">
${unsafe(safemarkdown(_(text), wrap=wrap))}
<%def name="md(text, wrap=False)">
${unsafe(safemarkdown(text, wrap=wrap))}
</%def>
<%def name="_md(text, wrap=False)">
${md(_(text), wrap=wrap)}
</%def>