Exploring Jinja's SandboxedEnvironment
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
templates
README.markdown
main.py

README.markdown

Safe Templates

An exploration into using Jinja2 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 to develop this solution.

Jinja provides a sandboxed environment to evaluate untrusted code.