Questions tagged [coffin]

Coffin is a Jinja2 adapter for Django

2 questions
3
votes
0 answers

Babel and jinja2 with coffin extension

I'm trying to translate a jinja2/coffin template with Babel using the command line tool. The issue is that the function babel_extract jams on the coffin tags like {% url %} or {% csrf_token %}. First, to detect the problem, I have modify…
goodfriend0
  • 193
  • 1
  • 8
2
votes
1 answer

How to access context variables from the Jinja's Extension?

I'm using django+jinja2 via coffin, and I can't understand how to access the context variables in the extension. For example, I have this: from coffin.shortcuts import render_to_response def some_view(request): return…
SvartalF
  • 163
  • 2
  • 8