/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
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <title>Module z_script</title>
- <link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
- </head>
- <body bgcolor="white">
- <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>
- <hr>
- <h1>Module z_script</h1>
- <ul class="index"><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
- <h2><a name="index">Function Index</a></h2>
- <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>
- <tr><td valign="top"><a href="#add_script-2">add_script/2</a></td><td></td></tr>
- <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>
- <tr><td valign="top"><a href="#get_page_startup_script-1">get_page_startup_script/1</a></td><td></td></tr>
- <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>
- <tr><td valign="top"><a href="#split-1">split/1</a></td><td>Split the scripts from the context.</td></tr>
- </table>
- <h2><a name="functions">Function Details</a></h2>
- <h3 class="function"><a name="add_content_script-2">add_content_script/2</a></h3>
- <div class="spec">
- <p><tt>add_content_script(Script, Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="add_script-2">add_script/2</a></h3>
- <div class="spec">
- <p><tt>add_script(Script, Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="clean-1">clean/1</a></h3>
- <div class="spec">
- <p><tt>clean(Context::Context1) -> Context2</tt></p>
- </div><p>Remove all scripts from the context, resetting it back to a clean sheet.</p>
- <h3 class="function"><a name="get_page_startup_script-1">get_page_startup_script/1</a></h3>
- <div class="spec">
- <p><tt>get_page_startup_script(Context) -> any()</tt></p>
- </div>
- <h3 class="function"><a name="get_script-1">get_script/1</a></h3>
- <div class="spec">
- <p><tt>get_script(Context) -> <a href="#type-iolist">iolist()</a></tt></p>
- </div><p>Collect all scripts in the context, returns an iolist with javascript.</p>
- <h3 class="function"><a name="split-1">split/1</a></h3>
- <div class="spec">
- <p><tt>split(Context) -> any()</tt></p>
- </div><p>Split the scripts from the context. Returns the scripts and a cleaned context.</p>
- <hr>
- <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>
- <p><i>Generated by EDoc, Oct 13 2011, 14:45:56.</i></p>
- </body>
- </html>