Skip to content

Tags: andris-silis/swig

Tags

v0.10.0

Toggle v0.10.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Added** loop.index0, loop.revindex, loop.revindex0, and loop.cycl…

…e [gh-48]

* **Added** init config `extensions` for 3rd party extension access in custom tags [gh-44]
* **Added** Whitespace Control [gh-46]
* **Changed** The `empty` tag in `for` loops is now `else` [gh-49]
* **Changed** `forloop` vars to `loop` closes [gh-47]
* **Fixed** `include` tag's `with` and `only` args documentation [gh-50]

v0.9.4

Toggle v0.9.4's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Fixed** `parent` tag would not render when called within tags [gh…

…-41]

* **Fixed** Documentation for forloop.index & forloop.key [gh-42]
* **Fixed** Errors when using `include` inside base template `block` tags [gh-43]
* **Fixed** Allow `set` tag to set values to numbers [gh-45]
* **Fixed** `set` tag for booleans using too many checks

v0.9.3

Toggle v0.9.3's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Fixed** Allow object and array values to be accessed via context …

…variables [gh-40]

v0.9.2

Toggle v0.9.2's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Fixed** Correctly reset autoescape after closing an autoescape ta…

…g. [paularmstronggh-39]

v0.9.1

Toggle v0.9.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Fixed** Allow multi-line tags and comments. [gh-30]

v0.9.0

Toggle v0.9.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Added** DateZ license to browser header, use link to underscore l…

…icense.

* **Added** Timezone support in `date` filter [gh-27].
* **Added** New `raw` tag.
* **Changed** Swig is no longer node 0.4 compatible.
* **Fixed** Filter `date('f')` for 10am times.
* **Fixed** Filter `date('r')` returns in UTC date format. This is more correct tospec RFC2822, per [php.net/date](https://php.net/date).
* **Fixed** Filter `add` when adding numbers/numbers+strings together.
* **Fixed** Tests for error messages that changed in node >0.6.0.

v0.8.0

Toggle v0.8.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Added** date filter formats `z`, `W`, `t`, `L`, `o`, `B`, and `c`.

* **Added** New `filter` tag.
* **Added** Node.js compatible 0.4.1 - 0.6.X
* **Added** Allow setting cache globally or per-template.
* **Changed** Removed `swig.render` and `swig.fromString`.
* **Changed** `swig.fromFile` is now `swig.compileFile`.
* **Changed** `swig.init()` will clear template cache.
* **Changed** `swig.init()` is now optional for browser mode with no custom settings.
* **Changed** Development dependencies are be more lenient.
* **Fixed** Parser will properly preserver '\' escaping. [gh-24]
* **Fixed** Rewrote tag argument parsing for proper space handling.
* **Fixed** Rewrote filter argument parsing. [gh-23]
* **Fixed** Allow pipe `|` characters in filter arguments. [gh-22]

v0.7.0

Toggle v0.7.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Added** `make browser` will build Swig for use in major browsers.…

… [gh-3]

* **Changed** Allow overriding `escape` filters. [gh-19]

v0.6.1

Toggle v0.6.1's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **Fixed** chaining filters when the first takes a variable as an ar…

…gument will not crash parsing.

v0.6.0

Toggle v0.6.0's commit message

Unverified

This tag is not signed, but one or more authors requires that any tag attributed to them is signed.
* **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