custom/templatetags/mathjax.py @ 1ddb600eeb22

Add support for Wisp
author Steve Losh <steve@stevelosh.com>
date Fri, 19 Feb 2016 11:50:18 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)