custom/templatetags/mathjax.py @ 1c03a1821833

Update links
author Steve Losh <steve@stevelosh.com>
date Sun, 14 Aug 2016 19:52:21 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)