Skip to main content

A Django-based library for rendering XML responses with XSLT support

Project description

pip install django-xml-view

Usage

  1. Add xml_renderer to your INSTALLED_APPS in settings.py:

    INSTALLED_APPS = [
        # Other apps
        'xml_renderer',
    ]
    
  2. 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


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)

Uploaded Source

Built Distribution

django_xml_view-0.1.0-py3-none-any.whl (1.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page