Skip to content

Releases: julvo/tinystatic

JS helper functions; Dynamic URLs

Choose a tag to compare

@julvo julvo released this 15 Sep 10:20
  • Use JavaScript helper function inside the templates, e.g.
    {{ .Routes | fn `routes => routes.filter(r => r.Meta.tags?.includes("some_tag"))` }}
  • Use create multiple routes from a single source file by using a variable name in the source filename, e.g. [tag].html and providing values for that variable in the front matter, e.g.
---
tag: ["a", "b", "c"]
---

Skip loading partials when no partials found

Choose a tag to compare

@julvo julvo released this 31 May 18:36

Use partials without route templates

Pre-release

Choose a tag to compare

@julvo julvo released this 25 Mar 21:54
  • Add templating even when a route does not specify a template. This allows the user to use partials and template pipelines without specifying a template.

Initial release

Initial release Pre-release
Pre-release

Choose a tag to compare

@julvo julvo released this 22 Mar 10:27

This is a pre-release to make testing tinystatic in practice easier, YMMV.