Use bottomUpM (from pandoc) when getting the templates