Added mako templates support