1
I Use This!
Moderate Activity
Analyzed about 19 hours ago. based on code collected 1 day ago.

Project Summary

What are Closure Templates?Closure Templates are a client- and server-side templating system that helps you dynamically build reusable HTML and UI elements. They are easy to learn and customizable to fit your application's needs. Closure Templates support JavaScript and Java and use a data model and expression syntax that works for either language. You can also use the built-in message support to easily localize your applications.

What are the benefits of using Closure Templates?Convenience. Closure Templates provide an easy way to build pieces of HTML for your application's UI and help you separate application logic from display. Language-neutral. Closure Templates work with JavaScript or Java. You can write one template and share it between your client- and server-side code. Client-side speed. Closure Templates are compiled to efficient JavaScript functions for maximum client-side performance. Easy to read. You can clearly see the structure of the output HTML from the structure of the template code. Messages for translation are inline for extra readability. Designed for programmers. Templates are simply functions that can call each other. The syntax includes constructs familiar to programmers. You can put multiple templates in one source file. A tool, not a framework. Works well in any web application environment in conjunction with any libraries, frameworks, or other tools. Battle-tested. Closure Templates are used extensively in some of the largest web applications in the world, including Gmail and Google Docs.

How do I start?Work through Hello World Using JavaScript. Work through Hello World Using Java. Read the Documentation.

Tags

ajax closure closuretemplates google html java javascript js template templates templating webapp webapplication webtemplate webtemplates

In a Nutshell, closure-templates...

Apache License 2.0
Permitted

Commercial Use

Modify

Distribute

Place Warranty

Sub-License

Private Use

Use Patent Claims

Forbidden

Hold Liable

Use Trademarks

Required

Include Copyright

State Changes

Include License

Include Notice

These details are provided for information only. No information here is legal advice and should not be used as such.

Project Security

Vulnerabilities per Version ( last 10 releases )

There are no reported vulnerabilities

Project Vulnerability Report

Security Confidence Index

Poor security track-record
Favorable security track-record

Vulnerability Exposure Index

Many reported vulnerabilities
Few reported vulnerabilities

Did You Know...

  • ...
    use of OSS increased in 65% of companies in 2016
  • ...
    learn about Open Hub updates and features on the Open Hub blog
  • ...
    in 2016, 47% of companies did not have formal process in place to track OS code
  • ...
    search using multiple tags to find exactly what you need
About Project Security

Languages

Java
94%
5 Other
6%

30 Day Summary

Jun 22 2026 — Jul 22 2026

12 Month Summary

Jul 22 2025 — Jul 22 2026
  • 184 Commits
    Down -193 (51%) from previous 12 months
  • 12 Contributors
    Down 0 (0%) from previous 12 months