custom/templatetags/mathjax.py @ bbf39c61e3fe

Spec
author Steve Losh <steve@stevelosh.com>
date Tue, 20 Sep 2016 15:23:05 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)