Skip to content Skip to sidebar Skip to footer

Javascript/java Html Template/data-binding Library

I'd like to find out about libraries with the following properties: Javascript implementation for client-side, Java implementation for server-side, light-weight syntax: no gene

Solution 1:

Have you considered using Mustache? It offers very simple templates and can be used in both java and javascript.

If you look at the docs you can see simple examples of loops:

{{#names}}
  Hi {{name}}!
{{/names}}

and conditions:

{{#value}}
  Value was true
{{/value}}
{{^value}}
  Value was false
{{/value}}

Includes can be handled by using partials, which let you pull in another template.

Post a Comment for "Javascript/java Html Template/data-binding Library"