A Template Engine inspired by Jinja2, built for fun!
- Create a base _Node class.
- Various different types of _Classes that inherit from _Node.
- Each has its own render_node() method, that works according to its function.
- Each stores a list of children nodes.
- Final render() method renders the node itself, and all its children.
- Start from the Root node and build the tree by adding children and then render the final tree.
- Fix the token cleanup. It's a mess. :-/
Loop and Conditional constructs.
- Variable injection in global scope (See context processors in jinja).