/doc/core/gen_scomp.html

https://code.google.com/p/zotonic/ · HTML · 57 lines · 44 code · 13 blank · 0 comment · 0 complexity · 0d022bfd0af2050713d1352a9ac0d741 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>Module gen_scomp</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 gen_scomp</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>Scomp behaviour definition.
  12. <p>Copyright Š 2009 Marc Worrell
  13. Copyright 2009 Marc Worrell
  14. Licensed under the Apache License, Version 2.0 (the "License");
  15. you may not use this file except in compliance with the License.
  16. You may obtain a copy of the License at
  17. http://www.apache.org/licenses/LICENSE-2.0
  18. Unless required by applicable law or agreed to in writing, software
  19. distributed under the License is distributed on an "AS IS" BASIS,
  20. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21. See the License for the specific language governing permissions and
  22. limitations under the License.
  23. </p>
  24. <p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
  25. <h2><a name="description">Description</a></h2><p>Scomp behaviour definition. A scomp is a screen component that can optionally be cached.</p>
  26. <p>render(Params, Vars, Context) -&gt; {ok, NewContext} | {ok, io_list()} | {error, Error}</p>
  27. <p>vary(Params, Context) -&gt; {EssentialParams, MaxAge, Vary} | nocache | default</p>
  28. Params = proplist()
  29. EssentialParams = proplist() (proplist with params that make differences in the cache key)
  30. MaxAge = integer()
  31. Vary = TermList (used as dependencies for the depcache)
  32. <h2><a name="index">Function Index</a></h2>
  33. <table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#behaviour_info-1">behaviour_info/1</a></td><td></td></tr>
  34. </table>
  35. <h2><a name="functions">Function Details</a></h2>
  36. <h3 class="function"><a name="behaviour_info-1">behaviour_info/1</a></h3>
  37. <div class="spec">
  38. <p><tt>behaviour_info(Other) -&gt; any()</tt></p>
  39. </div>
  40. <hr>
  41. <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>
  42. <p><i>Generated by EDoc, Aug 12 2011, 20:01:39.</i></p>
  43. </body>
  44. </html>