@squarespace/template-engine
TypeScript icon, indicating that this package has built-in type declarations

2.10.7 • Public • Published

template-engine

This is a port of the Squarespace Java template-compiler project to TypeScript.

Build Status Coverage Status

Versioning

The following live branches exist:

  • 1.x - for ongoing releases using moment and moment-timezone as direct dependencies
  • master - 2.x and future releases using @phensley/cldr for international formatting

Rationale

The need for compilation of Squarespace templates in the browser has grown over time. The existing projects that enable browser compilation of Squarespace templates are incomplete, incompatible and have maintenance issues.

This project is a new implementation of the Squarespace template syntax with the following goals:

  • Provide a sound foundation for current and future development.
  • Meet frontend application performance criteria.
  • Support all current server-side functionality, including all plugins.
  • Full compatibility with server compiler.
  • Separate the parsing and execution phases to support repeated executions of a template efficiently.
  • Organized and modular codebase.
  • Follow same basic design as Java compiler.
  • High test coverage.

License

Apache 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @squarespace/template-engine

Weekly Downloads

102

Version

2.10.7

License

Apache-2.0

Unpacked Size

2.35 MB

Total Files

400

Last publish

Collaborators

  • jcolton
  • nhassan
  • squarespace-dev
  • joshkill
  • pmalinowski
  • gzhang
  • aparkssqsp
  • brianjcarroll
  • danjohnsonnj
  • phensley
  • mattlyons
  • pomerantsev
  • squarespace-admin