1. paj
  2. tw2.core
  3. Issues
Issue #109 resolved

Refactor entire templates system

Ralph Bean
created an issue

It's really messy, with lots of conditionals.

It would benefit from a rewrite with a more declarative programming style.

Trying to add inline templates was really tough.

Comments (6)

  1. Ralph Bean reporter

    The whole entry points method of discovering template engines appears to be outdated. I discovered this first when attempting to add jinja2 support. See https://github.com/mitsuhiko/jinja2/pull/109 and the associated issue.

    I looked into the TurboGears2 source and they don't appear to be using the entry points method anymore either. We could try just copying their code. Supporting Jinja2 is a blocker for solid Flask integration.

  2. Anonymous

    Tested it against the doc tutorials and the latest tw2.devtools browser. All working. Merged in as of version 2.1.0a.

  3. Log in to comment