A Django-based library for rendering XML responses with XSLT support
Project description
pip install django-xml-view
Usage
-
Add
xml_rendererto yourINSTALLED_APPSinsettings.py:INSTALLED_APPS = [ # Other apps 'xml_renderer', ]
-
Use the
render_xmlfunction 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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_xml_view-0.1.0.tar.gz.
File metadata
- Download URL: django_xml_view-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b774f1aabde9dcd8fbbbdd7c390cbde761ee3f98eae64ca5747baee95b4550d1
|
|
| MD5 |
6716ed8e46012f4f2eb3ac2eea52d141
|
|
| BLAKE2b-256 |
facce20938011a86a48e05c2fe822fcb0b17b6fe56b376bbf067dc02b6fd5563
|
File details
Details for the file django_xml_view-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_xml_view-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed5935c4c729a5686f039bd529fe3d6e1c0ca7e873dfadfa7d4c6c40377d8128
|
|
| MD5 |
d8626dd0e68f68c467d203c93211e4c7
|
|
| BLAKE2b-256 |
49e1091f8a6f023a72dfa6223a4a819b48c59013a1b70ca4401abe0b55daa3c2
|