v0.33.0
Pre-release
Pre-release
Most relevant commits:
all
- all: replace the FileReader interface with the fs.FS interface
- all: remove support for Go v1.12 and v1.13
- all: make macros as functions with a string type return parameter
- all: replaces 'show' statements with a single 'show' statement
cmd/scriggo
- cmd/scriggo: refer to 'Build' functions instead of 'Load' functions
- cmd/scriggo: fix display of the error returned from the embed command
- cmd/scriggo: add "embed" and "io/fs" packages to stdlib
- cmd/scriggo: add 'serve' sub command
- cmd/scriggo: allow with 'serve -S n' to control Text length
compiler
- compiler/parser: add endless macro declarations
- compiler/checker: fix check of switch expression if comparable
- test/compare: fix 'compare' command for Go 1.16
- compiler: change 'declared and not used' to 'declared but not used'
- compiler,templates: add format types to the universe block
- compiler/parser: add .mkd, .mkdn, .mdown and .markdown extensions
- compiler/lexer: fix endless loop parsing '$' without extended syntax
- compiler/parser: allow macro declarations in all implicit blocks
- compiler/ast/astutil: fix clone of function context
- compiler/parser: allow macros only in 'format' contexts
- compiler/parser: fix error message parsing function parameters
- compiler: add 'partial ' statement in place of 'show '
- compiler/parser: add missing format in comment
- compiler/checker: fix error on evaluated but not used type conversion
- compiler/disassembler: fix disassembled function parameters
- compiler/parser: don't let show macro statement cut spaces
- compiler/checker: fix format type value conversion to same type
- compiler/checker: fix position in 'invalid macro result type' error
- compiler: allow return statement in macro body
- compiler/parser: add macro type literals
- compiler/parser: change error message if 'goto' is outside function body
- compiler: replace 'partial' statement with 'render' expression
templates
- templates: allow the show of HTML values in Markdown context
- templates: document file formats for the Build method
- templates: rename the format type 'md' to 'markdown'
- templates: remove obsolete examples
- templates: export MapFS in the 'templates' package