swig v1.0.0-pre1 Release Notes
Release Date: 2013-08-14 // almost 11 years ago-
- ๐ Changed Completely rewritting parsing engine supports many more syntaxes and is much easier to extend.
- ๐ Changed There is no more
swig.init
method. - ๐ Changed Custom filters can be added using
swig.addFilter
- ๐ Changed Custom tags can be added using
swig.addTag
- ๐ Changed Writing custom tags uses an entirely new, simplified format
- ๐ Changed Removed the underscore/lodash dependency
- ๐ Changed Template parsing has been completely rewritten
- ๐ Changed
swig.compileFile
returns a function that renders templates, not an object - ๐ Changed Express-compatible using
swig.renderFile
. - ๐ Changed
extends
,import
, andinclude
now reference files with relative paths from the current file (info). - ๐ Changed
extends
may no longer accept variables (info). - ๐ Changed
else if
tag is nowelseif
orelif
. - ๐ Changed Removed
only
argument frominclude
. - ๐ Changed allow
_
,$
to start var names in templates. - ๐ Changed Documentation is auto-generated from jsdoc comments in-files.
- โ Added Ability to set custom var/tag/comment controls (
{{
,}}
, etc, can be customized). - โ Added Variable/string concatenation gh-135.
- โ Added Binary application for
compile
,run
, andrender
(Lets you pre-compile templates into JS functions for client-side delivery). - ๐ Fixed Lots.