This repository has been archived by the owner on Apr 11, 2018. It is now read-only.
Releases: paularmstrong/swig
Releases · paularmstrong/swig
v1.4.2
- Added Report JS parse errors with template filenames. gh-492
- Fixed Ensure block-level tags (
set
, etc) are parsed in correct order. gh-495 - Fixed Ensure import tag uses current Swig instance's loader. gh-421, gh-503
- Fixed Allow disabling cache on compile/render functions directly. gh-423
- Fixed Ensure compilation does not leak global variables. gh-496
- Fixed Fix for-loops to run on strings. gh-478, gh-479
- Fixed Allow macro output to be assigned using
set
tag. gh-499, gh-502
v1.4.1
- Fixed
macro
argument names colliding with context variable names. gh-457 - Fixed filter chaining within tags. gh-441
v1.4.0
- Changed Allow variable tokens to start with
$
. gh-455 - Changed
fs
loader should takecwd
as default base path. gh-419 - Changed handle errors which occur at the time of rendering. gh-417
- Changed default options in bin (
varControls
,tagControls
,cmtControls
). gh-415 - Changed
null
should yield empty string when resolving variable. gh-408 - Added Escape character for
date
filter argument. gh-427, gh-432 - Added Make
if
andelseif
throw a better error message when a tag body is omitted. gh-425 - Fixed don't throw errors on accessing property of
null
object. gh-471 - Fixed
loop
variables work correctly in nested loops. gh-433 - Fixed Some IE8 compatibility (require es5). gh-428
v1.3.2
v1.3.0
- Changed Removed official node v0.8.x support
- Added Custom template loader support. gh-377, gh-384, gh-382
- Added Ability to set root path using template loaders. gh-382, gh-293
- Added CLI now accepts custom filter and tag arguments. gh-391
- Added Allow
set
tag to set keys on objects with bracket and dot-notation. gh-388 - Added
groupBy
filter from swig-extras. gh-383 - Fixed
swig.run
filepath
arg is always optional. gh-402 - Fixed Filters on non-empty functions apply correctly. gh-397
- Fixed Filters applied to functions w/ & w/o dotkeys. gh-365
- Fixed
date
filterN
option returns correct number. gh-375 - Fixed Ensure getting parent template checks cache if on. gh-378
v1.2.2
- Fixed CTX var output in imported macros. gh-363
v1.2.1
- Fix scoping for Express. gh-363
v1.2.0
- Added Filepath parameter can be passed to swig.run to allow extends in-browser. gh-349
- Changed Use local-context first for var lookups. gh-344, gh-347
- Changed Allow DOTKEY after functions/objects/filters. gh-355
- Changed Context of for-tags carries into includes. gh-356
- Changed When a callback is passed into compileFile, catch all errors thrown by compile and pass the error to callback. gh-340
- Fixed Instances of Swig retain their options properly. gh-351
- Fixed Fix misc documentation issues. gh-359, gh-358
v1.1.0
- Added Allow logic in default parsing. gh-326
- Fixed Error when attempting to wrap spaceless tag around macro/function output. gh-336
- Fixed Don't overwrite keys on the locals object. gh-337
v1.0.0
- Fixed Allow parent and other tags to work correctly nested in other tags. gh-331
- Fixed Prevent lexer from matching partial logic/words in variables. gh-330
Migrating from v0.x.x? View the Migration Guide