custom/templatetags/mathjax.py @ ac43706c95d0

More links
author Steve Losh <steve@stevelosh.com>
date Tue, 16 Aug 2016 15:54:47 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)