google / closure-templates

A client- and server-side templating system that helps you dynamically build reusable HTML and UI elements
Apache License 2.0
640 stars 194 forks source link

Closure Templates

Closure Templates are a client- and server-side templating system that helps you dynamically build reusable HTML and UI elements. They have a simple syntax that is natural for programmers, and you can customize them to fit your application's needs. In contrast to traditional templating systems,in which you must create one monolithic template per page, you can think of Closure Templates as small components that you compose to form your user interface. You can also use the built-in message support to easily localize your applications.

Closure Templates are implemented for both JavaScript and Java, so that you can use the same templates on both the server and client side. They use a data model and expression syntax that work for either language. For the client side, Closure Templates are precompiled into efficient JavaScript.

What are the benefits of using Closure Templates?

Getting Started

Support and Project status

Closure Templates is widely used and well maintained internally at Google but does not currently have staffing to support the open source release. As such this project is mostly a 'code dump' and support is minimal. For certain issues, like build integration we are in an especially bad position to offer support.

To get assistance you can use any of the following forums

  1. Look through the documentation.
  2. Post a question to the closure-templates-discuss mailing list.
  3. File a bug on github

Though, given our support staffing, we may not be able to help.

Using Closure Templates with other open source frameworks

There are many Closure Template integrations with other popular open source frameworks. Here are a few options for getting started: