Skip to content

Releases: Pinjasaur/templater.js

v3.1.0

06 Jun 00:57
260c907
Compare
Choose a tag to compare

New feature: don't automatically escape HTML entities by setting autoescape: false in a configuration object that can now be passed as the 2nd parameter to templater.

templater("template string", { autoescape: false })

Thanks @Bekreth!

v3.0.1

23 Mar 22:20
Compare
Choose a tag to compare

Patch bump from v3.0.0.

Built dist. files didn't have the new version.

v3.0.0

23 Mar 21:55
Compare
Choose a tag to compare
  • Update Node dependencies.
  • Match prop names in context case insensitive.

Example:

Given an example context

{
  name: "John Smith"
}

can only reference as {{ name }}, not {{ Name }}, {{ NAME }}, etc.

v2.0.0

02 Jun 01:21
Compare
Choose a tag to compare

Add support for nested properties like so: {{foo.bar.baz}}.

Also added support referencing functions in the data object as well.

The documentation is updated on the project page.

v1.0.3

01 Jun 02:48
Compare
Choose a tag to compare

Windows causing weird issues with backslashes with unpkg.

v1.0.2

17 May 04:20
Compare
Choose a tag to compare
v1.0.2

v1.0.1

20 Apr 01:33
Compare
Choose a tag to compare

v1.0.1

Updated dependencies and fixed typos and issues in documentation.

v1.0.0

16 Nov 05:04
Compare
Choose a tag to compare

Initial v1.0.0 public release.