lume icon indicating copy to clipboard operation
lume copied to clipboard

Allow to assign multiple template engines to a format.

Open oscarotero opened this issue 3 years ago • 0 comments

It's possible to assign multiple template engines to a page, using the templateEngine value. For example:

---
title: Hello
templateEngine: njk,md
---

# {{ title }}

But it's not possible to register a format to use multiple template engines. For example:

site.engine([".njk.md"], nunjucksEngine, markdownEngine);

This would allows to bring a initial mdx support with:

site.engine([".mdx"], jsxEngine, mdEngine);

oscarotero avatar Aug 12 '22 11:08 oscarotero