Skip to content

Releases: open2b/scriggo

v0.61.1

13 Mar 10:02
b1c16a6

Choose a tag to compare

This release includes bug fixes, minor improvements, and dependency updates.

Full list of changes since v0.61.0: v0.61.0...v0.61.1

v0.61.0

04 Mar 14:45
ebac08e

Choose a tag to compare

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.

v0.60.0

17 Feb 09:36
2ca03c0

Choose a tag to compare

This release follows the release of Go 1.24 and introduces updates to ensure compatibility. The minimum supported Go version is now 1.23, while the Scriggo command is compiled with Go 1.24.

Changes:

v0.59.1

27 Jan 16:08
0fde5a2

Choose a tag to compare

Bug-fix release

This release addresses a bug in the emitter (issue #967).

For further details, please refer to the commit that fixed the issue.

v0.59.0

22 Dec 09:37

Choose a tag to compare

This release introduces LiveReload functionality to the Scriggo Serve command, enabling automatic page reloads in the browser whenever the page’s template files are modified.

With LiveReload and the automatic template rebuild, changes are instantly reflected in the browser as soon as you save the files.

To disable LiveReload, use the --disable-livereload flag.

v0.58.1

16 Dec 14:54

Choose a tag to compare

This release focuses on bug fixes and updates dependencies. It addresses the following issues:

  • Resolved a race condition occurring when a function or macro was called indirectly.
  • Fixed issues causing empty output when invoking a macro, especially in cases of recursive calls.
  • Addressed template recompilation errors in the Scriggo serve command when a render operator was indirectly used within a show statement.

v0.58.0

04 Dec 14:50

Choose a tag to compare

This release fixes the following issues:

  • Fixed a panic in the Scriggo command when trying to import or extend a non-existent file.
  • Fixed rendering issues when a non-Markdown file is rendered inside a Markdown context.

Additionally, files with the ".mdx" extension are now treated as Markdown files by default.

We’ve added the MarkdownConverter method to native.Env. A function or method, whether passed globally or imported into a template, can now use this method to retrieve the Markdown converter passed when building the template.

Finally, the scriggo serve command now enables support for footnotes in Markdown parsing.

Changes

v0.57.1

22 Oct 13:32

Choose a tag to compare

This release only updates the GitHub Action files and the GoReleaser configuration for the release of Scriggo binaries.

v0.57.0

22 Oct 12:23
960446d

Choose a tag to compare

Support for Go Compiler Versions 1.22 or Higher

This release adds support for Go compiler versions 1.22 or later.

Note that support for Go versions 1.21 or earlier is therefore removed, as functionality of Scriggo is no longer guaranteed for these compiler versions.

Fixes

Dependency Updates

v0.56.1

04 Aug 13:28

Choose a tag to compare