Skip to content

Instantly share code, notes, and snippets.

@iamnoah
Created July 23, 2010 22:20
Show Gist options
  • Save iamnoah/488131 to your computer and use it in GitHub Desktop.
Save iamnoah/488131 to your computer and use it in GitHub Desktop.
<div class="product" >
<g:link action="show" id="${productInstance.id}">
<h3>
${productInstance.name}
(${productInstance.id})
</h3>
</g:link>
<div class="image">
<img src="${resource(dir:'images/product',file: productImage)}" />
</div>
<span class="price">
${formatNumber(number:productInstance.price,format:"\$###,##0")}
</span>
<div class="description">
${productInstance.description}
</div>
<div class="colors">
Try different colors!
<g:each in="${colors}" var="color">
<g:link class="color ${color}" action="showColor" id="${productInstance.id}" params="${[color:color]}">
${color}
</g:link>
</g:each>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment