Releases: open2b/scriggo
Releases · open2b/scriggo
v0.22.0
v0.21.0
v0.20.0
v0.19.0
v0.18.0
Most relevant commits:
- compiler: fix error message returned on cycle in templates
- compiler: fix checking of function literals in templates
- compiler: change 'include' to 'show partial'
- compiler: export cycleError implementing the CompilerError interface
v0.17.0
v0.16.0
Most relevant commits:
- compiler: fix parsing of end statement in templates
- cmd/scriggo: add package "time/tzdata" to stdlib
- compiler: support nested template comments
- cmd/scriggo: add package "hash/maphash" to stdlib
- compiler: make lexing of script and style tags more compliant
- Add support for language JSON
templates: remove the builtins from the repository
The builtins will be moved in another repository.
v0.14.0: compiler: fix initialization of imported packages (#643)
This commit fixes the initialization of imported template files. For more details about the issue take a look at https://github.com/open2b/scriggo/issues/643. The fix required two main changes to the compiler: * the restoring of the cache of the parser, that was removed by the commit 0edbd4261f77c8d2d07b7ade413eb3fea2faeefd. The cache was removed because it used to lead to some invalid behavior related to the 'include' statement; such problems are not present now because the behavior of the 'include' statement has been changed (the included code is now independent from the scope that included it). * the emitter has been modified to emit the code that calls the init functions collected during the emission of an imported package. The emitter keeps track of which packages have already been initialized to avoid double-initialization of the same package (that would lead to invalid behavior). Also, this commit enables some tests on the template. Fix #643.
Fix and change escaping in attribute context
Fix escaping of "<" and ">" in unquoted attribute context and don't escape "&" for HTML values in attribute context.