/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. <h1>Module z_lib_include</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>Support for the {% lib filename ...
  12. <p>Copyright Š (c) 2009 Marc Worrell</p>
  13. <p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
  14. <h2><a name="description">Description</a></h2>Support for the {% lib filename ... %} tag in the templates.
  15. Generates the <link> or <script></script> tag for css or js files. Also
  16. adds the greatest modification date so that updates are loaded by
  17. the browser.
  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="#tag-2">tag/2</a></td><td>Generate the link and/or script tags for the given files.</td></tr>
  20. <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>
  21. <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>
  22. </table>
  23. <h2><a name="functions">Function Details</a></h2>
  24. <h3 class="function"><a name="tag-2">tag/2</a></h3>
  25. <div class="spec">
  26. <p><tt>tag(Files, Context) -&gt; any()</tt></p>
  27. </div><p>Generate the link and/or script tags for the given files.</p>
  28. <h3 class="function"><a name="tag-3">tag/3</a></h3>
  29. <div class="spec">
  30. <p><tt>tag(Files, Args, Context) -&gt; any()</tt></p>
  31. </div><p>Generate the link and/or script tags for the given files.</p>
  32. <h3 class="function"><a name="uncollapse-1">uncollapse/1</a></h3>
  33. <div class="spec">
  34. <p><tt>uncollapse(Path::string()) -&gt; list()</tt></p>
  35. </div><p>Given the filepath of the request, return all files collapsed in the path.</p>
  36. <hr>
  37. <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>
  38. <p><i>Generated by EDoc, Aug 12 2011, 20:01:39.</i></p>
  39. </body>
  40. </html>