custom/templatetags/mathjax.py @ 9099c4a3d13d

Proofread DS
author Steve Losh <steve@stevelosh.com>
date Sun, 26 Jun 2016 17:34:08 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)