custom/templatetags/mathjax.py @ 5bc07cde293f

Fix links and timestamp
author Steve Losh <steve@stevelosh.com>
date Wed, 29 Jun 2016 13:24:13 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)