paularmstrong/swig — pull request #95 by gigafied (2012-07-28 00:26:54+00:00)
Title: {% extends someVar %} support.

Added the option to use context vars when using the `extends` tag.

The main catch is that we can't cache the render function in cases where we do use a context var with {% extends %}. This is obviously a speed hit, so a disclaimer somewhere saying this is slower than using string literals may be in order.

Further optimizations can be made though. Creating a dictionary of some sort to store render functions based on certain context var values would work.