This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A template tag for Django that takes a string and renders as it if it was a template. Uses the current Engine and RequestContext.

Include in your template by adding {% load render_as_template %}. Use by adding {% render_as_template some_var %} where some_var is a context variable that acts as a template.

Example: assume your view exposes two variables in the context: my_string and my_template.

Then, if:

my_string == u"", and

my_template == u"Go to {{ my_string|urlize }}!"", and

the_views_template.html == u"{% render_as_template my_template %}"

Then final output would be:

Go to <a href="" rel="nofollow"></a>!

Mixed with flatpages this lets you create powerful websites, although make sure you trust the people who can edit those flatpages because who knows what kind of dangerous security holes this thing will create! Also if your template includes HTML don’t forget to mark it safe:

{% render_as_template my_template|safe %}
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django_render_as_template-1.0.0-py2.py3-none-any.whl (4.3 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Apr 18, 2015
django-render-as-template-1.0.0.tar.gz (2.2 kB) Copy SHA256 Checksum SHA256 Source Apr 18, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting