Inherit defined variables from parent templates for extended templates, just like view includes
Saved some bytes in the regular expressions used for template compilation
Merge pull request #55 from thijsw/master

Minor template compilation changes