I've got a view func like this:
def user_agreement(request):
return response(request, template='misc/flatpage.html',
vars={'fp':FlatPage.objects.get(key='user-agreement')})
And then the template looks like this:
<h2>{% block title %}{{ fp.title }}{% endblock %}</h2>
{{ fp.content|markdown }}
This works pretty well, but I also want to include some Django {{filters}}
in the content. Is there an "evaluate" filter so I can do:
{{ fp.content|evaluate|markdown }}
And it will substitute all my variables for me? Or what's the easiest/best approach to this?