/sitebricks-acceptance-tests/src/main/resources/Embed.html

http://github.com/dhanji/sitebricks · HTML · 48 lines · 33 code · 7 blank · 8 comment · 0 complexity · 876273cc2da6fc095b027729dedab22f MD5 · raw file

  1. <html>
  2. <!--
  3. Design by Free CSS Templates
  4. http://www.freecsstemplates.org
  5. Released for free under a Creative Commons Attribution 2.5 License
  6. -->
  7. <head>
  8. <!-- embedded @Require headers go here -->
  9. </head>
  10. <body>
  11. The following is a custom widget created from the <a href="hello">HelloWorld</a> example.
  12. Notice that the stylesheet is available in the enclosing page via use of the @Require widget
  13. (this page is not styled by default, whereas HelloWorld is).
  14. <br/><br/>
  15. We can even pass arguments to the embedded page (let's use the list "${arg}" instead of its
  16. <a href="/hello">default message</a>).
  17. <br/><br/><br/><br/>
  18. @Repeat(var="item", items=arg)
  19. <div>
  20. @Hello(message=item)
  21. <span>
  22. This text is replaced by the embed.
  23. </span>
  24. </div>
  25. <br/><br/><br/><br/>
  26. <br/><br/><br/><br/>
  27. <p>
  28. <h1>Let's try that again!!</h1>
  29. </p>
  30. <br/><br/><br/><br/>
  31. @Repeat(var="item", items=arg)
  32. <div>
  33. @Hello(message=item)
  34. <span>
  35. This text is replaced by the embed.
  36. </span>
  37. </div>
  38. </body>
  39. </html>