custom/templatetags/mathjax.py @ 749ec5a03533

Recursive MPD
author Steve Losh <steve@stevelosh.com>
date Sat, 05 Mar 2016 21:26:30 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


def mathjax(value):
    return "<div>$$ " + value + " $$</div>"

register.filter('mathjax', mathjax)