Add support for templates

The doxx module itself supports templates using practically the same code.

See: https://github.com/FGRibreau/doxx/blob/f01ddb10a1830d25bb849733ca96b0231208125d/lib/doxx.js