Last active
December 16, 2015 00:39
-
-
Save mattkime/5349728 to your computer and use it in GitHub Desktop.
JSP tags for integration with ...just roughing it out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <backbone:view view="AppView"> | |
| <jsp:param name="template"> | |
| <mustache:interpolate key="Meetup.Templates[App]"/> | |
| </jsp:param> | |
| <%-- need way to pass in arbitrary list of args as options | |
| such as counter = 6 | |
| gets passed as data-counter="6" to main tag...not sure how possible that is | |
| --%> | |
| <backbone:viewOption name="counter" value="${itemList.length}"/> | |
| <%-- nested content--%> | |
| <backbone:view view="ItemView" model="Item" items="${itemList}" var="item" id="id"> | |
| <jsp:param name="template"> | |
| <mustache:interpolate key="Meetup.Templates[Item]"> | |
| <mustache:param name="part1" value="${item.part1}" /> | |
| <mustache:param name="part2" value="${item.part2}" /> | |
| </mustache:interpolate> | |
| </jsp:param> | |
| <backbone:viewOption name="part1" value="${item.part1}"/> | |
| <backbone:viewOption name="part2" value="${item.part2}"/> | |
| <%-- | |
| need to communicate what data gets passed in to model | |
| part1 : "hello", | |
| world : "part1" | |
| --%> | |
| </backbone:view> | |
| </backbone:view> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment