custom/templatetags/mathjax.py @ a52d61eb7e85

Timestamp
author Steve Losh <steve@stevelosh.com>
date Mon, 07 Mar 2016 13:44:20 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)