Added template rendering using Mako, if available