custom/templatetags/mathjax.py @ af70a83b2de9

Merge.
author Steve Losh <steve@stevelosh.com>
date Wed, 29 Jun 2016 13:22:45 +0000
parents 47f9b4b91599
children (none)
from django import template

register = template.Library()


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

register.filter('mathjax', mathjax)