pyline icon indicating copy to clipboard operation
pyline copied to clipboard

ENH: Add jinja support

Open westurner opened this issue 11 years ago • 2 comments

westurner avatar May 17 '14 15:05 westurner

  • [ ] DOC: README.rst: -O jinja:template=path/to/template.jinja,+autoescape
    • autoescape=True is the default
    • This does not add a trailing newline for you.
      • The jinja template (e.g. .jinja, .jinja2, .j2) must end with a trailing newline to prevent everything being concatenated to the same line.

westurner avatar Feb 14 '16 23:02 westurner

  • [ ] build context from result_objs:List
  • [ ] print_template_variables(context)
  • [ ] fsloader(template_path).template.render(context)

westurner avatar Jan 31 '17 16:01 westurner