https://github.com/btbytes/safetempl
Exploring Jinja's SandboxedEnvironment
https://github.com/btbytes/safetempl
Last synced: about 1 year ago
JSON representation
Exploring Jinja's SandboxedEnvironment
- Host: GitHub
- URL: https://github.com/btbytes/safetempl
- Owner: btbytes
- Created: 2010-09-08T02:33:47.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-09-08T02:34:05.000Z (over 15 years ago)
- Last Synced: 2025-03-25T03:53:36.670Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
Safe Templates
==============
An exploration into using [Jinja2](http://jinja.pocoo.org) for user-modifiable, safe templating.
The present goal is to have a fixed location on the server, into which the user can upload Templates
and/or store templates in a database table and use them to render data from a known API.
I have chosen [Flask](http://flask.pocoo.org) to develop this solution.
Jinja provides a [sandboxed environment](http://jinja.pocoo.org/2/documentation/sandbox) to evaluate
untrusted code.