custom/templatetags/mathjax.py @ 8d1cd7431860

Proofread
author Steve Losh <steve@stevelosh.com>
date Tue, 28 Jun 2016 23:39:20 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)