Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

easy-template-x

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-template-x - npm Package Versions

2345

4.1.1

Diff

Changelog

Source

4.1.1 - 2024-08-12

Fixed

  • Fix importing the package without a bundler (#120).
alonrbar
published 4.1.0 •

Changelog

Source

4.1.0 - 2024-07-17

Added

  • Image transparency support (#109).
alonrbar
published 4.0.0 •

Changelog

Source

4.0.0 - 2024-07-07

This version introduces the notion of "tag options". These options are controlled through the template and are useful for situations where we want to allow the template author to use the same data in different ways. For instance, if we have a collection in the data and we want to allow the template author to use this collection inside a table to either produce multiple rows or in order to expand the collection inside a single table cell. In this case, the template author will be able to specify either {# my collection [loopOver: "row"]} or {# my collection [loopOver: "content"]} to control the resulting outcome.

Added

  • BREAKING - Introduce "tag options" syntax: {tag name [options]}. E.g. {# Students [loopOver: "rows"]}.
    • This may break existing templates that use brackets as part of their tag names.
    • If you still need to use brackets in the tag name (for instance if you are using an advanced syntax and access an array element by index), you can change the tag options delimiters through the TemplateHandler options (e.g. use [[ options ]] instead of [ options ]).
  • loopOver tag option, to control loop behavior in tables, as explained above.

Changed

  • BREAKING - A loop inside a single table cell is assumed to be a paragraph loop, not a table loop (will repeat content, not rows; should fix #50, #52, #56, #85, #92 and #110). The default behavior can be overridden by using the new loopOver option.
alonrbar
published 3.2.1 •

Changelog

Source

3.2.1 - 2024-05-25

Fixed

  • Properly handle XML comments in template doc (#113).
alonrbar
published 3.2.0 •

Changelog

Source

3.2.0 - 2023-05-27

Added

  • Link tooltip support (#91).
alonrbar
published 3.1.0 •

Changelog

Source

3.1.0 - 2023-04-01

Added

  • Image alt text support (#86).

Changed

  • Update dependencies (xmldom).
alonrbar
published 3.0.4 •

Changelog

Source

3.0.4 - 2022-12-12

Fixed

  • Encode attribute values (#62).
alonrbar
published 3.0.3 •

Changelog

Source

3.0.3 - 2022-12-12

Changed

  • Update dependencies (jszip, xmldom) (#73).
alonrbar
published 3.0.2 •

Changelog

Source

3.0.2 - 2022-08-20

Added

  • Add documentation for the parseTags method (here) (#65).
alonrbar
published 3.0.1 •

Changelog

Source

3.0.1 - 2022-08-20

Fixed

  • Use ESM import for lodash.get so the package can be used with modern bundlers (#66).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc