PonyConf/proposals/templatetags/proposals_tags.py
Élie Bouttier f4efcf6dfd Add Conference model
This model allow to write markdown home page
2016-08-07 12:51:38 +02:00

12 lines
185 B
Python

from django import template
from proposals.utils import markdown_to_html
register = template.Library()
@register.simple_tag
def markdown(value):
return markdown_to_html(value)