PageRenderTime 21ms CodeModel.GetById 1ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

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