A Django-based library for rendering XML responses with XSLT support
Project description
pip install django-xml-view
Usage
-
Add
xml_renderer
to yourINSTALLED_APPS
insettings.py
:INSTALLED_APPS = [ # Other apps 'xml_renderer', ]
-
Use the
render_xml
function in your views:from xml_renderer.xmlrenderer import render_xml def home(req): xslt_url = static('style.xsl') return render_xml(req, "home.xml", {'xslt': xslt_url})
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_xml_view-0.1.0.tar.gz
(1.9 kB
view hashes)
Built Distribution
Close
Hashes for django_xml_view-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed5935c4c729a5686f039bd529fe3d6e1c0ca7e873dfadfa7d4c6c40377d8128 |
|
MD5 | d8626dd0e68f68c467d203c93211e4c7 |
|
BLAKE2b-256 | 49e1091f8a6f023a72dfa6223a4a819b48c59013a1b70ca4401abe0b55daa3c2 |