custom/templatetags/mathjax.py @ 7d304e52e098

Fix the fucking timestamp
author Steve Losh <steve@stevelosh.com>
date Tue, 15 Dec 2015 16:38:24 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)