custom/templatetags/mathjax.py @ bb75d39cfff3

Add Lisp Game Jam Entry
author Steve Losh <steve@stevelosh.com>
date Sat, 13 Aug 2016 00:33:40 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)