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”.

Related Questions

In which way can the closure compiler can be used?
The functions provide() and require() of Dojo toolkit and Google’s Closure library are used for
Non-closure of neuropore leads to
Immediately after closure of semilunar valves there is
Delayed closure of the anterior fontanelle occurs in:
What is the purpose of the advanced mode in the Closure compiler?