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, and include now reference files with relative paths from the current file (info).
    • ๐Ÿ”„ Changed extends may no longer accept variables (info).
    • ๐Ÿ”„ Changed else if tag is now elseif or elif.
    • ๐Ÿ”„ Changed Removed only argument from include.
    • ๐Ÿ”„ 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, and render (Lets you pre-compile templates into JS functions for client-side delivery).
    • ๐Ÿ›  Fixed Lots.