Fix the base template for template inheritance.

This fixes issue #2.
Merge remote-tracking branch 'origin/feature/2-mako-base-inheritance-fix' into develop