plone / diazo

Diazo applies a static HTML theme to a dynamic website
http://diazo.org
Other
41 stars 26 forks source link

Add the ability to specify XSLT filename by path relative to any given available egg #7

Closed mitchellrj closed 12 years ago

mitchellrj commented 12 years ago

As an alternative to specifying filename or tree in your WSGI configuration, one may specify an egg resource in the form:

egg_name:path/to/resource

lrowe commented 12 years ago

When running as WSGI middleware python:// urls are supported (but poorly documented...). This gives you the ability to use a url like: python://myprojects.package/static/foo.html when referring to any resource. See: https://github.com/plone/diazo/blob/master/lib/diazo/wsgi.py

Reopen this if you thing there is some functionality in your patch missing here.

mitchellrj commented 12 years ago

Ah, it seems I inadvertently altered the wrong part anyway, my intention was to support the 'rules' variable in this way. It seems that python:// URLs don't work in this instance, so I will resubmit a different pull request shortly.