PageRenderTime 16ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/modules/mod_base/scomp_base_catinclude.html

https://code.google.com/p/zotonic/
HTML | 45 lines | 36 code | 9 blank | 0 comment | 0 complexity | 7ed98c8f7546f4f14eea7455137c8121 MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module scomp_base_catinclude</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 scomp_base_catinclude</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>Include a template by category, with possible caching.
13<p>Copyright Š 2009 Marc Worrell</p>
14
15<p><b>Behaviours:</b> <a href="gen_scomp.html"><tt>gen_scomp</tt></a>.</p>
16<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
17
18<h2><a name="description">Description</a></h2><p>Include a template by category, with possible caching</p>
19 
20       <p>Example: include "some_file.tpl" and cache it for 3600 seconds       
21{% include depend="something" maxage=3600 file="some_file.tpl" %}</p>
22 
23       Give a maxage of 0 for slam dunk protection but no caching.
24<h2><a name="index">Function Index</a></h2>
25<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#render-3">render/3</a></td><td></td></tr>
26<tr><td valign="top"><a href="#vary-2">vary/2</a></td><td></td></tr>
27</table>
28
29<h2><a name="functions">Function Details</a></h2>
30
31<h3 class="function"><a name="render-3">render/3</a></h3>
32<div class="spec">
33<p><tt>render(Params, Vars, Context) -&gt; any()</tt></p>
34</div>
35
36<h3 class="function"><a name="vary-2">vary/2</a></h3>
37<div class="spec">
38<p><tt>vary(Params, Context) -&gt; any()</tt></p>
39</div>
40<hr>
41
42<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>
43<p><i>Generated by EDoc, Aug 12 2011, 19:36:11.</i></p>
44</body>
45</html>