Tuesday, January 14, 2014

Jquery template (jquery-tmpl) with Play Framework

Hi,

In order to use Jquery templates in your Play Framework project here is what you need to do in your html:

<script id="template" type="text/x-jquery-tmpl">
<div>${'$'}{rating}</div>
 </script>

Play will convert this into ${rating}, which should be the documented case:
https://github.com/BorisMoore/jquery-tmpl

Note: In this case, I used Play Framework 1.2

Cheers,


No comments:

Post a Comment