Modify default FreeMarker bean wrapper so template data is read-only. Use different bean wrapper for script and stylesheet objects. Added methods to IndividualView class.

This commit is contained in:
rjy7 2010-06-08 22:24:12 +00:00
parent b27617696f
commit 4c3259163b
5 changed files with 66 additions and 18 deletions

View file

@ -55,6 +55,4 @@
</div>
<#-- RY This is temporary.
<script src="${contextPath}/js/commentForm.js"></script>-->
${scripts.add("/js/commentForm.js")}
${scripts.add("/js/commentForm.js")}

View file

@ -9,7 +9,6 @@
<@l.firstLastList>
<li>${individual.tagline}</li>,
<#list individual.links as link>
${link.setAnchor("Changing Anchor Text")}
<li><a class="externalLink" href="${link.url}">${link.anchor}</a></li>,
</#list>
</@l.firstLastList>