Comments (2)
What precisely do you want to work with? As of the latest commit to pyramid_jinja2, the registration either gets called during config.includeme('pyramid_jinja2') or after the first template is loaded. Both of which call the sort of private _get_or_build_default_environment(registry)
function. Once that utility has been registered, you can easily look up the utility and augment the Environment instance or it's loader directly.
Besides this, I also have a need to use a different loader with the Environment... a loader that works more like the chameleon loader, so if you have a suggestion for making the loader construction more flexible, feel free to describe it.
from pyramid_jinja2.
Since there's been no followup activity on this issue I'm closing it out.
from pyramid_jinja2.
Related Issues (20)
- Bug in GETTEXT when loading templates dynamically HOT 2
- After including pyramid_jinja2, config.get_jinja2_environment() is still None HOT 1
- Templates not found in sub-directories (add_jinja2_search_path ) HOT 6
- [Resolved]Log warnings while sphinx generate documentation HOT 3
- jinja2 exceptions propages to top - not caught by debug toolbar HOT 11
- release 2.6 HOT 3
- add test coverage for python 3.5 and pypy3, remove 3.2 HOT 2
- Impossible to set `jinja2.i18n.gettext` via configuration file HOT 7
- switch to py.test and pip HOT 3
- Typo in the default template in trans tag causes i18n to fail HOT 8
- convert scaffold to cookiecutter HOT 14
- add_jinja2_renderer `name` only works for default search path HOT 1
- globals cannot be set to strings HOT 1
- Can't list templates HOT 1
- ModuleNotFoundError: No module named 'pyramid_Jinja2' HOT 1
- Support for continue / break statements HOT 2
- add support for lstrip_blocks HOT 4
- Fix pypy version on Travis HOT 5
- What's the best way to add the current request object to Jinja's globals? HOT 3
- Requires Jinja2 3.0, but doesn't declare so HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyramid_jinja2.