Poops now supports Liquid as an alternative template engine alongside Nunjucks. Use .liquid files and familiar Liquid syntax for your templates, layouts, and includes.
Poops now ships with two template engines: Nunjucks (the default) and Liquid. You can choose which engine to use by setting the engine option in your markup configuration. Both engines support the same feature set — collections, pagination, search index, sitemap, custom tags, and filters.
{
"markup": {
"in": "src/liquid",
"out": "dist",
"engine": "liquid"
}
}
Nunjucks and Liquid are similar but have key differences:
{% include 'header.liquid' %} instead of {% include 'header.html' %}{% layout 'default.liquid' %} instead of {% extends 'default.html' %}{% for item in collection.items %} works the same in bothAll Poops features work with both engines:
slugify, date, markdown, highlight, etc.)googleFonts, image, highlight)