GithubHelp home page GithubHelp logo

isabella232 / template-compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from squarespace/template-compiler

0.0 0.0 0.0 2.63 MB

Java compiler for primary Squarespace template language

Home Page: https://www.javadoc.io/doc/com.squarespace.template/template-core/

License: Apache License 2.0

HTML 13.11% Java 86.89% Shell 0.01%

template-compiler's Introduction

Squarespace Template Compiler.

A Java template compiler based on JSON-Template.

Build Status Coverage Status

License: Apache 2.0 (summary)

Copyright (c) 2014 SQUARESPACE, Inc.

Overview

Squarespace's template language is based on JSON-Template, a minimal declarative template language for Python and JavaScript, heavily influenced by google-ctemplate.

Objectives

The project was started with these objectives:

  • Move away from using Node.js for backend template compilation.
  • Must meet or exceed performance of the legacy system. The compiler can potentially execute several times for each page view, so it needs to be really fast.
  • Improve performance over the legacy system.
  • Minimize memory usage. For example, parsing can often create and discard a high number of temporary strings.
  • Support additional features for server-side compilation.
  • High test coverage.
  • Support syntax error recovery.
  • Support a template validation mode.

Measured Results

  • Average 20x performance increase over previous Node.js + JSON-Template system.

template-compiler's People

Contributors

clin26 avatar david-xiang-sqsp avatar georgezzhang avatar helenzhangg avatar jasonbl avatar jaywritescode avatar jshimizu-sqsp avatar marcoangulo avatar mcase-sqsp avatar melias-sqsp avatar phensley avatar rohan51 avatar skong avatar suhuitan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.