Skip to content

v0.61.0

Choose a tag to compare

@zapateo zapateo released this 04 Mar 14:45
ebac08e

This release brings improvements and new features across several parts of Scriggo: the command-line tool gains new commands and flags, the template engine adds new builtins and API, and several bugs have been fixed.

Scriggo command

  • New build command that compiles a template and writes the output to files. This makes it easy to deploy a site by uploading the generated files to a static file hosting platform — a simple and fast way to bring a website to production. The build command also accepts a -llms flag to generate LLM-friendly Markdown output.
  • New -http flag for scriggo serve to specify the address to listen on.
  • The serve command now has the -conts flag, aligning its behavior with the existing run command.
  • The serve command now also checks for path/index.html or path/index.md when neither path.html nor path.md is found.

Builtins and API

  • New indentJSON builtin that indents a json value while preserving the existing object key order.
  • New Template.Format method.
  • New tree transformation APIs: the transformations methods of the tree now allow transforming the syntax tree at different stages of the compilation pipeline — one before the expansion of imported and extended files, and one after. This gives greater flexibility and control over how the AST tree is transformed.

Other fixes and improvements

  • Fixed the handling of panic(nil).
  • Various improvements and fixes to the template and the rest of Scriggo. See the full list of changes.

Breaking changes

  • BuildOptions.TreeTransformer has been renamed to ExpandedTransformer to better reflect when it is executed.

Go version

The minimum required Go version is now Go 1.25, while the Scriggo command is compiled with Go 1.26.