whit537/aspen — pull request #60 by jarpineh (2012-05-09 19:04:15+00:00)
Title: Pull request for Jinja2 renderer

Hi.

This is a working Jinja2 renderer with support for template inherintance from both www_root and project_root. Caching templates should work automatically by Jinja2's native functionality.

See TODOs in the code for two implementation questions. I decided to rely as much as possible on Jinja2's code and subclassed FileSystemLoader. This meant I had to create a Simplate parser and also transform template paths from absolute to relative by removing project_root and www_root. I am not so sure about the way either of them works.