Add support for using jinja2's PackageLoader #959

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

jso commented Jan 23, 2014

Follows the same approach for switching between file-system and package loaders as used by werkzeug's wsgi.SharedDataMiddleware. That is, a string is assumed to be in the file system, and a tuple with length 2 is assumed to provide the (1) package name and (2) the template folder name in the package.

@jso jso Add support for using jinja2's PackageLoader; follow the same approac…
…h for switching between file-system and package loaders as used by werkzeug's wsgi.SharedDataMiddleware.
1b7f859
Owner

Out of scope for Flask itself due to the integration with blueprints. You can already override the loader creation.

@mitsuhiko mitsuhiko closed this Feb 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment