Why is a closure template used?
Why is a closure template used? Correct Answer Dynamically generating HTML in Java and JavaScript
Instead of compiling from a source language to machine code, closure templates compiles from JavaScript to better JavaScript. Closure compiler provides with the basic facilities of removing spaces and dead code. Closure Templates are a templating system for dynamically generating HTML in both Java and JavaScript. Because the language was apparently referred to as “Soy” internal to Google, and “Soy” remains in some of the documentation and classes, sometimes Closure Templates are referred to as “Soy Templates”.