I am using Jinja2 in a new project, but would like to use a django-socialregistration application based on Django template templates, Jinja2 does not play beautifully with templates, so I wonder if there is a quick solution?
Template tags:
{% load facebook_tags%}
{% facebook_button%}
{% facebook_js%}
This previous question is about the same topic for Mako, but it's hard for me to adapt it to work with Jinja2. The following is my adaptation attempt (non-working):
{% from django.template import Template, Context %}
{% tpl = "{% load facebook_tags %}{% facebook_button %}{% facebook_js %}" %}
${Template(tpl).render(Context(dict_=dict(request=request)))}
Any tips? I am new to inlining, so I donβt know if the above is even close.