Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

[Shock] - Allow for multiple template engines to run on a single source file #69

Closed matthew-carroll closed 1 month ago

matthew-carroll commented 6 months ago

Make it possible to specify a series of template engines/conversions to run on source content.

Here's an example from Lume as to why this is useful:

A typical example is a file using Markdown to render HTML but Nunjucks to insert variables or includes. To do that, you can use an array to add several engines:

---
title: My post
templateEngine: [vto, md]
---

# Hello, this is the post title {{ title }}