-
Notifications
You must be signed in to change notification settings - Fork 9
Home
Spring Soy View is a library that lets you use Google Closure Templating library (Soy) with Spring MVC framework.
Being not happy with some other open source libraries I decided to create my own. Spring-Soy-View library apart from serving it's main purpose let's you plug any implementation for existing interfaces.
Soy Template Files Soy is a very simple templating language, yet very powerful. It is used by Google's main applications such as Gmail.
It offers basic constructs such as loops, variables, etc. However, contrary to other templating languages it is very restrictive about accessing code from a template itself. For instance it is not possible to invoke any method on a domain object from a template as with other templating engines.
Example: {namespace soy.example}
/**
- Word list
- @param words The words to display
*/
{template .clientWords}
-
{foreach $word in $words}
- {$word} {/foreach}
{/template}