PageRenderTime 33ms CodeModel.GetById 15ms app.highlight 10ms RepoModel.GetById 2ms app.codeStats 0ms

/doc/core/z_tags.html

https://code.google.com/p/zotonic/
HTML | 55 lines | 45 code | 10 blank | 0 comment | 0 complexity | a2acb3f9748129b7d70e04eba723985f MD5 | raw file
 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html>
 3<head>
 4<title>Module z_tags</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_tags</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>Generate a XHTML element with attributes, correctly escape all attributes.
13<p>Copyright Š 2009 Marc Worrell &lt;marc@worrell.nl&gt;
14 
15  Based on code Copyright (c) 2008-2009 Rusty Klophaus
16  Original author Tom McNulty &lt;tom.mcnulty@cetiforge.com&gt;
17 </p>
18
19<p><b>Authors:</b> Marc Worrell (<a href="mailto:marc@worrell.nl"><tt>marc@worrell.nl</tt></a>).</p>
20
21<h2><a name="description">Description</a></h2>Generate a XHTML element with attributes, correctly escape all attributes.
22<h2><a name="index">Function Index</a></h2>
23<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#optional_escape-1">optional_escape/1</a></td><td></td></tr>
24<tr><td valign="top"><a href="#render_tag-2">render_tag/2</a></td><td>Render a tag with properties, return the tag text.</td></tr>
25<tr><td valign="top"><a href="#render_tag-3">render_tag/3</a></td><td>Render a tag into the context.</td></tr>
26<tr><td valign="top"><a href="#render_tag-4">render_tag/4</a></td><td></td></tr>
27</table>
28
29<h2><a name="functions">Function Details</a></h2>
30
31<h3 class="function"><a name="optional_escape-1">optional_escape/1</a></h3>
32<div class="spec">
33<p><tt>optional_escape(S) -&gt; any()</tt></p>
34</div>
35
36<h3 class="function"><a name="render_tag-2">render_tag/2</a></h3>
37<div class="spec">
38<p><tt>render_tag(TagName, Props) -&gt; any()</tt></p>
39</div><p>Render a tag with properties, return the tag text. div has special handling as <div></div> is not allowed.</p>
40
41<h3 class="function"><a name="render_tag-3">render_tag/3</a></h3>
42<div class="spec">
43<p><tt>render_tag(TagName, Props, Context) -&gt; any()</tt></p>
44</div><p>Render a tag into the context</p>
45
46<h3 class="function"><a name="render_tag-4">render_tag/4</a></h3>
47<div class="spec">
48<p><tt>render_tag(TagName, Props, Content, Context) -&gt; any()</tt></p>
49</div>
50<hr>
51
52<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>
53<p><i>Generated by EDoc, Aug 12 2011, 20:01:39.</i></p>
54</body>
55</html>