html_context is always overriden

dan mackinlay avatardan mackinlay created an issue

in the the docs - - it is implied that one can set a variable called `html_context` so as to provide context variables to your templates. However, AFAICT, one cannot. One may only provide template context through command line switches, since in, html_context is always set to be an empty dictionary and passed in as an override.

Is this an error in documentation, or in code? I can try to provide a patch for either when I have a moment spare. FWIW, I'd prefer to pass in options to the html_context in as well as as a command line switch, as storing command-line options in a Makefile instead of feels wrong.

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.