Pandoc wrapper and template engine