Allow a template factory function to be provided to __helper.l

Fixes the following issue: https://github.com/raptorjs/markoify/issues/1