/doc/core/z_scomp.html

http://github.com/zotonic/zotonic · HTML · 42 lines · 35 code · 7 blank · 0 comment · 0 complexity · d32d94c92f47a9e6ec201105911de293 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module z_scomp</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_scomp</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>Module for rendering and caching scomps.
  12. <p>Copyright Š 2009-2010 Marc Worrell
  13. </p>
  14. <p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
  15. <h2><a name="description">Description</a></h2>Module for rendering and caching scomps. Scomps can be caching and
  16. non caching, depending on the passed arguments and the results of the
  17. scomp's varies/2 function.
  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="#render-4">render/4</a></td><td>Render the names scomp, Args are the scomp arguments and Vars are the variables given to the template.</td></tr>
  20. <tr><td valign="top"><a href="#render_all-4">render_all/4</a></td><td></td></tr>
  21. </table>
  22. <h2><a name="functions">Function Details</a></h2>
  23. <h3 class="function"><a name="render-4">render/4</a></h3>
  24. <div class="spec">
  25. <p><tt>render(ScompName, Args, Vars, Context) -&gt; {ok, Context} | {ok, io_list} | {error, Reason}</tt></p>
  26. </div><p>Render the names scomp, Args are the scomp arguments and Vars are the variables given to the template</p>
  27. <h3 class="function"><a name="render_all-4">render_all/4</a></h3>
  28. <div class="spec">
  29. <p><tt>render_all(ScompName, Args, Vars, Context) -&gt; any()</tt></p>
  30. </div>
  31. <hr>
  32. <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>
  33. <p><i>Generated by EDoc, Oct 13 2011, 14:45:55.</i></p>
  34. </body>
  35. </html>