Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Latest commit

 

History

History
131 lines (81 loc) · 5.56 KB

History.md

File metadata and controls

131 lines (81 loc) · 5.56 KB

0.7.0 / 2011-10-05

  • Added make browser will build Swig for use in major browsers. [gh-3]
  • Changed Allow overriding escape filters. [gh-19]

Documentation

0.6.1 / 2011-10-02

  • Fixed chaining filters when the first takes a variable as an argument will not crash parsing.

Documentation

0.6.0 / 2011-10-02

  • Added {% import foo as bar %} tag for importing macros.
  • Added Allow escaping for js in escape filter and autoescape tag.
  • Added raw filter to force variable to not be escaped.
  • Added escape and e filters to force variable to be escaped.
  • Added Allow filters to accept any JS objects, arrays, strings, and context variables.
  • Changed if, else, and else if tags support all JS-valid if-syntaxes + extra operators.
  • Fixed default filter for undefined variables. closes gh-18

Documentation

0.5.0 / 2011-09-27

  • Added More error messaging in some edge cases.
  • Added Better error messaging including context and line numbers.
  • Changed Improved compile and render speeds.
  • Changed include tags accept context variables instead of just strings.
  • Changed Templates can be compiled and rendered from an absolute path outside of the template root.
  • Fixed Will not double escape output.

Documentation

0.4.0 / 2011-09-24

  • Added Macro support docs
  • Changed Removed requirement to manually specify locals for express support.
  • Changed Increased cache lookup speed by removing crypto dependency.
  • Fixed length filter returns length of objects (number of keys).
  • Fixed Filters return empty string unless they can apply to the given object.
  • Fixed Filters will attempt to apply to all values in an object or array.

Documentation

0.3.0 / 2011-09-17

  • Added Support for {% set ... %} tag.

Documentation

0.2.3 / 2011-09-16

  • Fixed Critical fix for negations in if blocks.
  • Added Support for forloop.first in for blocks.
  • Added Support for forloop.last in for blocks.
  • Added Support for forloop.key in for blocks.
  • Added Support for {% empty %} in for blocks.

Documentation

0.2.2 / 2011-09-16

  • Added Support for else if ... within if blocks.

Documentation

0.2.1 / 2011-09-13

  • Added Support for else within if blocks.

Documentation

0.2.0 / 2011-09-11

  • Fixed if statements allow filters applied to operands.
  • Fixed for loops allow filters applied to the object that will be iterated over.

Documentation

0.1.9 / 2011-09-11

  • Added allowErrors flag will allow errors to be thrown and bubbled up. Default to catch errors.
  • Changed Internal speed improvements.

Documentation

0.1.8 / 2011-09-10

  • Added add, addslashes, and replace filters.
  • Changed All tags that 'end' must use named ends like endblock, endif, endfor, etc...

Documentation

0.1.7 / 2011-09-05

  • Added this History document
  • Fixed date filter to zero-pad correctly during september when using 'm' format

Documentation

0.1.6 / 2011-09-04

  • Fixed Template inheritance blocks messing up.

Documentation

0.1.5 / 2011-09-04

  • Added first, last, and uniq filters
  • Added ability to specify custom filters
  • Added ability to specify custom tags
  • Changed slots removed -- implement using custom tags if desired
  • Fixed ability to do either dot- or bracket-notation or mixed in variables
  • Fixed internal parsing helpers

Documentation

0.1.3 / 2011-09-01

  • Fixed filter parser to work correctly with single-quoted params in filters.

Documentation

0.1.2 / 2011-09-01

  • Initial swig publish after forking from node-t

Documentation