custom/templatetags/mathjax.py @ 1f29d302c82d

Add node_modules to .hgignore.
author Steve Losh <steve@stevelosh.com>
date Sun, 28 Feb 2016 11:52:32 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)