PageRenderTime 25ms CodeModel.GetById 14ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/core/z_lib_include.html

https://code.google.com/p/zotonic/
HTML | 48 lines | 40 code | 8 blank | 0 comment | 0 complexity | 3ba0e6d6ecc35c84efa6544d9feca18b MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module z_lib_include</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_lib_include</h1>
12<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>Support for the {% lib filename ...
13<p>Copyright Š (c) 2009 Marc Worrell</p>
14
15<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
16
17<h2><a name="description">Description</a></h2>Support for the {% lib filename ... %} tag in the templates.
18  Generates the <link> or <script></script> tag for css or js files.  Also
19  adds the greatest modification date so that updates are loaded by
20  the browser.
21<h2><a name="index">Function Index</a></h2>
22<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#tag-2">tag/2</a></td><td>Generate the link and/or script tags for the given files.</td></tr>
23<tr><td valign="top"><a href="#tag-3">tag/3</a></td><td>Generate the link and/or script tags for the given files.</td></tr>
24<tr><td valign="top"><a href="#uncollapse-1">uncollapse/1</a></td><td>Given the filepath of the request, return all files collapsed in the path.</td></tr>
25</table>
26
27<h2><a name="functions">Function Details</a></h2>
28
29<h3 class="function"><a name="tag-2">tag/2</a></h3>
30<div class="spec">
31<p><tt>tag(Files, Context) -&gt; any()</tt></p>
32</div><p>Generate the link and/or script tags for the given files.</p>
33
34<h3 class="function"><a name="tag-3">tag/3</a></h3>
35<div class="spec">
36<p><tt>tag(Files, Args, Context) -&gt; any()</tt></p>
37</div><p>Generate the link and/or script tags for the given files.</p>
38
39<h3 class="function"><a name="uncollapse-1">uncollapse/1</a></h3>
40<div class="spec">
41<p><tt>uncollapse(Path::string()) -&gt; list()</tt></p>
42</div><p>Given the filepath of the request, return all files collapsed in the path.</p>
43<hr>
44
45<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>
46<p><i>Generated by EDoc, Aug 12 2011, 20:01:39.</i></p>
47</body>
48</html>