custom/templatetags/mathjax.py @ d6bebd8d9778

Link my .plan
author Steve Losh <steve@stevelosh.com>
date Mon, 27 Jun 2016 15:25:34 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)