Skip to content

Releases: open2b/scriggo

v0.22.0

16 Oct 12:43
Compare
Choose a tag to compare
v0.22.0 Pre-release
Pre-release

This is a bug-fix only release.

v0.21.0

16 Oct 07:48
Compare
Choose a tag to compare
v0.21.0 Pre-release
Pre-release

This is a bug-fix release.

Most relevant commits:

  • compiler: store type infos into 'compilation' instead of 'checker'

v0.20.0

30 Sep 10:05
Compare
Choose a tag to compare
v0.20.0 Pre-release
Pre-release

Most relevant commits:

  • compiler: fix containsURL function and add more tests
  • compiler: fix lexing of {{, {% and {# after an attribute name

v0.19.0

15 Sep 08:46
f8aaac7
Compare
Choose a tag to compare
v0.19.0 Pre-release
Pre-release

Most relevant commits:

  • compiler: fix access to struct fields

v0.18.0

09 Sep 12:48
ff0b4ea
Compare
Choose a tag to compare
v0.18.0 Pre-release
Pre-release

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

05 Sep 15:58
Compare
Choose a tag to compare
v0.17.0 Pre-release
Pre-release

Most relevant commits:

  • compiler: fix lexing of JSON language
  • compiler: allow show statement inside an attribute value

v0.16.0

03 Sep 13:59
bf242b2
Compare
Choose a tag to compare
v0.16.0 Pre-release
Pre-release

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

28 Aug 12:15
Compare
Choose a tag to compare
The builtins will be moved in another repository.

v0.14.0: compiler: fix initialization of imported packages (#643)

26 Aug 09:07
Compare
Choose a tag to compare
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

18 Aug 20:08
Compare
Choose a tag to compare

Fix escaping of "<" and ">" in unquoted attribute context and don't escape "&" for HTML values in attribute context.