Releases: open2b/scriggo
Releases · open2b/scriggo
v0.32.0
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
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
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
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
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
v0.26.0
v0.25.0
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
v0.23.0
- 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