Leon Framework 0.2 documentation

Closure Templates

«  Modules   ::   Contents   ::   CoffeeScript  »

Closure Templates

Leon uses Googles’s [1] Closures Templates to enable client-side templating.

Defining a client-side template

Closures Templates are defined in .soy files. See the official documentation [2] for further information about the .soy syntax. Template files have to be placed in a Resources folder.

Automatic compilation of .soy files

All .soy files are automatically compiled by the Closures compiler. The result is a .js file with the same name at the same location as the .soy file.

[1]Closure Templates http://code.google.com/intl/de/closure/templates/
[2]Closure File Structure http://code.google.com/intl/de/closure/templates/docs/concepts.html#filestructure

«  Modules   ::   Contents   ::   CoffeeScript  »