Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

use mako strict_undefined and allow user to provide an environment to template#10

Open
yanghao wants to merge 2 commits intonicolas-van:masterfrom
yanghao:master
Open

use mako strict_undefined and allow user to provide an environment to template#10
yanghao wants to merge 2 commits intonicolas-van:masterfrom
yanghao:master

Conversation

@yanghao
Copy link

@yanghao yanghao commented Nov 14, 2018

There are 4 changes:

  1. Using strict_undefined mako template mode to ease the template debugging
  2. Return the exception stack as bytes to the client so you can see the debug trace from within browser
  3. When handling a directory, check if index.html exists. This makes the "pygreen serve" showing similar behavior as a static site.
  4. Allow user to provide a user defined python functions/objects in env.py centrally, such that you don't have to mix pure python code within your template.

EOF.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants