-
Notifications
You must be signed in to change notification settings - Fork 11
Home
erdincyilmazel edited this page Dec 20, 2011
·
8 revisions
Cambridge is a template engine for the java platform which can be used your web framework of choice. It currently supports servlets, JAX-RS, Play Framework. (Spring MVC and Struts 2.0 support is in development.)
<div id="loginBox" a:if="!loggedIn">
Username: <input type="text" name="username"/>
Password: <input type="password" name="password"/>
</div>
<div a:else>
<div>Hello ${user.name}!</div>
<div>Here are your online friends</div>
<ul>
<li a:foreach="user.onlineFriends" a:as="friend">${friend.name}</li>
</ul>
</div>