custom/templatetags/mathjax.py @ 70fe7c0e8250

Add initial Links page
author Steve Losh <steve@stevelosh.com>
date Wed, 10 Aug 2016 16:07:51 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)