Allow functions instead of objects for templates
0.1.4