custom/templatetags/mathjax.py @ db148e22d042

Bump timestamp
author Steve Losh <steve@stevelosh.com>
date Fri, 19 Aug 2016 13:09:32 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)