Play!Framework‎ > ‎

Play! - templates syntax examples

This is how you can render a map for example
<errors>

   
    #{list items:myErrorsMap.entrySet(), as:'entry'}
    <error errorCode="${entry.key}">
           
            <messages>
                #{list items:entry.value , as:'msg'}
                <message>${msg}</message>
                #{/list}
            </messages>
    </error>
    #{/list}

</errors>

The language in the curly brackets is groovy.

For a fully documented syntax review you can check out :


Comments