Skip to content

Releases: open2b/scriggo

v0.32.0

15 Dec 09:26
Compare
Choose a tag to compare
v0.32.0 Pre-release
Pre-release

Most relevant commits:

  • compiler/lexer: handle backslash in Markdown context
  • compiler/disassembler: return assembly code as []byte
  • compiler/disassembler: disassemble the text in Text instructions
  • templates: control max text length with the Disassemble method
  • compiler: disassemble 'func ()' as 'func()' instead of 'func () ()'
  • compiler,runtime: disassemble macros as 'Macro' instead of 'Func'
  • compiler/parser: fix lang mismatch error also for already parsed files
  • all: allow Markdown to extends HTML and HTML to show imported Markdown
  • all: prefer 'format' to 'language'
  • templates: escape '~' in Markdown
  • templates: rename Vars method to UsedVars
  • scriggo: move the methods of *MapPackage to MapPackage
  • compiler/parser: fix returned error if a file does not exist
  • compiler: fix checking of dependencies of *ast.Statements nodes

v0.31.0

11 Dec 10:09
db177ab
Compare
Choose a tag to compare
v0.31.0 Pre-release
Pre-release

Most relevant commits:

  • compiler/ast: remove Macro node and use Func instead
  • compiler/checker: fix panic showing a Scriggo defined type value
  • compiler/checker,templates: show values of Scriggo defined types
  • templates: fix panic showing a []byte defined type value in CSS context
  • runtime: move 'typeof' field to 'env' and add TypeOf method to Env
  • all: replace TypeOf function with the Types interface
  • runtime: fix Typify with Scriggo defined types using the Types interface
  • compiler,templates: support Markdown as template language
  • scriggo,scripts,templates: rename 'Load' methods to 'Build'
  • compiler: rename 'Compile...' methods to 'Build...'
  • templates: rename 'Render' method to 'Run'
  • compiler/parser: parse HTML tags in Markdown context
  • compiler/lexer: fix column of tokens when "\n\r" used as line ending
  • compiler/lexer, templates: escape values in Markdown code blocks
  • all: improve runtime support for templates

v0.30.0

01 Dec 15:54
02d08a1
Compare
Choose a tag to compare
v0.30.0 Pre-release
Pre-release

Most relevant commits:

  • compiler/parser: improve error messages when text in declaration files
  • compiler/parser: fix error position on non spaces in declaration file
  • all: prefer 'JS' to 'JavaScript' in names
  • templates: fix misspelling of 'shown' in function names and comments
  • templates: get file language from file extension by default

v0.29.0

23 Nov 16:10
Compare
Choose a tag to compare
v0.29.0 Pre-release
Pre-release

Most relevant commits:

  • compiler: always allow extended syntax in templates
  • compiler/parser: make ParseSource function unexported
  • compiler: split CompileProgram func in CompileProgram and CompileScript
  • all: prefer 'script' to 'package-less program'
  • compiler: use extended syntax in scripts
  • all: prefer 'global' to 'builtin' for not Go builtins
  • scriggo: add 'scripts' package and move code from the 'scriggo' package
  • script: pass variable values as first argument to the Run function
  • all: prefer 'packages' to 'loaders' and 'importers' for PackageLoader
  • compiler/parser: fix panic parsing invalid token after template switch
  • compiler/emitter: fix emitting of extending files with declarations
  • compiler/parser: fix error message for case not in switch or select
  • compiler/parser: fix panic importing and then showing the same file
  • compiler/parser: check cycles before the already parsed check
  • compiler/parser: fix 'extends' statement preceded by not empty text
  • compiler/parser: fix panic showing an invalid path
  • compiler/parser: add {% show(expr) %} statement
  • compiler/checker: fix checking of partial files

v0.28.0

10 Nov 13:34
f691666
Compare
Choose a tag to compare
v0.28.0 Pre-release
Pre-release

Most relevant commits:

  • compiler: remove 'or ignore' and 'or todo' in show macro statement
  • compiler/emitter: fix comparison with interface type operand
  • emitter,runtime: fix comparing interface values with Scriggo types
  • all: add 'contains' operator

v0.27.0

05 Nov 08:05
Compare
Choose a tag to compare
v0.27.0 Pre-release
Pre-release

Most relevant commits:

  • compiler/emitter: fix stack shift when emitting initialization funcs

v0.26.0

04 Nov 10:59
Compare
Choose a tag to compare
v0.26.0 Pre-release
Pre-release

Most relevant commits:

  • compiler/checker: support top-level declarations in dollar identifiers
  • compiler/parser: fix parsing incomplete expressions in condition

v0.25.0

30 Oct 11:13
Compare
Choose a tag to compare
v0.25.0 Pre-release
Pre-release

Most relevant commits:

  • compiler: implement the dollar identifier
  • compiler: revert "add global assertions"
  • cmd/scriggo: fix import path of packages rendered from Scriggofile
  • playground: update for Go version 1.15
  • compiler/emitter: fix shadowing of global vars with ':='

v0.24.0

28 Oct 14:41
2a14d6c
Compare
Choose a tag to compare
v0.24.0 Pre-release
Pre-release

Most relevant commits:

  • compiler/ast: add method (*Position).WithEnd
  • compiler/emitter: fix 'if x op len(y)'
  • compiler: add global assertions

v0.23.0

19 Oct 13:57
Compare
Choose a tag to compare
v0.23.0 Pre-release
Pre-release
  • highlighters: add language for highlight.js
  • compiler/lexer: make string parsing error messages the same as gc's
  • templates: add function HTMLEscape
  • Add some tests
  • compiler: fix builtin vars in templates and package-less programs
  • compiler/checker: fix sorting of packages imported multiple times