/doc/core/z_tags.html

https://code.google.com/p/zotonic/ · HTML · 55 lines · 45 code · 10 blank · 0 comment · 0 complexity · a2acb3f9748129b7d70e04eba723985f MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module z_tags</title>
  5. <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
  6. </head>
  7. <body bgcolor="white">
  8. <div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
  9. <hr>
  10. <h1>Module z_tags</h1>
  11. <ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>Generate a XHTML element with attributes, correctly escape all attributes.
  12. <p>Copyright Š 2009 Marc Worrell &lt;marc@worrell.nl&gt;
  13. Based on code Copyright (c) 2008-2009 Rusty Klophaus
  14. Original author Tom McNulty &lt;tom.mcnulty@cetiforge.com&gt;
  15. </p>
  16. <p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
  17. <h2><a name="description">Description</a></h2>Generate a XHTML element with attributes, correctly escape all attributes.
  18. <h2><a name="index">Function Index</a></h2>
  19. <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#optional_escape-1">optional_escape/1</a></td><td></td></tr>
  20. <tr><td valign="top"><a href="#render_tag-2">render_tag/2</a></td><td>Render a tag with properties, return the tag text.</td></tr>
  21. <tr><td valign="top"><a href="#render_tag-3">render_tag/3</a></td><td>Render a tag into the context.</td></tr>
  22. <tr><td valign="top"><a href="#render_tag-4">render_tag/4</a></td><td></td></tr>
  23. </table>
  24. <h2><a name="functions">Function Details</a></h2>
  25. <h3 class="function"><a name="optional_escape-1">optional_escape/1</a></h3>
  26. <div class="spec">
  27. <p><tt>optional_escape(S) -&gt; any()</tt></p>
  28. </div>
  29. <h3 class="function"><a name="render_tag-2">render_tag/2</a></h3>
  30. <div class="spec">
  31. <p><tt>render_tag(TagName, Props) -&gt; any()</tt></p>
  32. </div><p>Render a tag with properties, return the tag text. div has special handling as <div></div> is not allowed.</p>
  33. <h3 class="function"><a name="render_tag-3">render_tag/3</a></h3>
  34. <div class="spec">
  35. <p><tt>render_tag(TagName, Props, Context) -&gt; any()</tt></p>
  36. </div><p>Render a tag into the context</p>
  37. <h3 class="function"><a name="render_tag-4">render_tag/4</a></h3>
  38. <div class="spec">
  39. <p><tt>render_tag(TagName, Props, Content, Context) -&gt; any()</tt></p>
  40. </div>
  41. <hr>
  42. <div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
  43. <p><i>Generated by EDoc, Aug 12 2011, 20:01:39.</i></p>
  44. </body>
  45. </html>