/doc/core/z_script.html

http://github.com/zotonic/zotonic · HTML · 60 lines · 49 code · 11 blank · 0 comment · 0 complexity · efb27a1744ca2abcc478f3d77d756490 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module z_script</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_script</h1>
  11. <ul class="index"><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
  12. <h2><a name="index">Function Index</a></h2>
  13. <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#add_content_script-2">add_content_script/2</a></td><td></td></tr>
  14. <tr><td valign="top"><a href="#add_script-2">add_script/2</a></td><td></td></tr>
  15. <tr><td valign="top"><a href="#clean-1">clean/1</a></td><td>Remove all scripts from the context, resetting it back to a clean sheet.</td></tr>
  16. <tr><td valign="top"><a href="#get_page_startup_script-1">get_page_startup_script/1</a></td><td></td></tr>
  17. <tr><td valign="top"><a href="#get_script-1">get_script/1</a></td><td>Collect all scripts in the context, returns an iolist with javascript.</td></tr>
  18. <tr><td valign="top"><a href="#split-1">split/1</a></td><td>Split the scripts from the context.</td></tr>
  19. </table>
  20. <h2><a name="functions">Function Details</a></h2>
  21. <h3 class="function"><a name="add_content_script-2">add_content_script/2</a></h3>
  22. <div class="spec">
  23. <p><tt>add_content_script(Script, Context) -&gt; any()</tt></p>
  24. </div>
  25. <h3 class="function"><a name="add_script-2">add_script/2</a></h3>
  26. <div class="spec">
  27. <p><tt>add_script(Script, Context) -&gt; any()</tt></p>
  28. </div>
  29. <h3 class="function"><a name="clean-1">clean/1</a></h3>
  30. <div class="spec">
  31. <p><tt>clean(Context::Context1) -&gt; Context2</tt></p>
  32. </div><p>Remove all scripts from the context, resetting it back to a clean sheet.</p>
  33. <h3 class="function"><a name="get_page_startup_script-1">get_page_startup_script/1</a></h3>
  34. <div class="spec">
  35. <p><tt>get_page_startup_script(Context) -&gt; any()</tt></p>
  36. </div>
  37. <h3 class="function"><a name="get_script-1">get_script/1</a></h3>
  38. <div class="spec">
  39. <p><tt>get_script(Context) -&gt; <a href="#type-iolist">iolist()</a></tt></p>
  40. </div><p>Collect all scripts in the context, returns an iolist with javascript.</p>
  41. <h3 class="function"><a name="split-1">split/1</a></h3>
  42. <div class="spec">
  43. <p><tt>split(Context) -&gt; any()</tt></p>
  44. </div><p>Split the scripts from the context. Returns the scripts and a cleaned context.</p>
  45. <hr>
  46. <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>
  47. <p><i>Generated by EDoc, Oct 13 2011, 14:45:56.</i></p>
  48. </body>
  49. </html>