|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 2 | + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 | +<html> |
| 4 | +<head> |
| 5 | + <title>Reference</title> |
| 6 | + <link rel="stylesheet" href="<?lua= docletsfhtml.link('luadoc.css', 'hooks.html')?>" type="text/css" /> |
| 7 | + <!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/--> |
| 8 | +</head> |
| 9 | + |
| 10 | +<body> |
| 11 | +<div id="container"> |
| 12 | + |
| 13 | +<div id="product"> |
| 14 | + <div id="product_logo"></div> |
| 15 | + <div id="product_name"><big><b></b></big></div> |
| 16 | + <div id="product_description"></div> |
| 17 | +</div> <!-- id="product" --> |
| 18 | + |
| 19 | +<div id="main"> |
| 20 | + |
| 21 | +<div id="navigation"> |
| 22 | +<?lua=docletsfhtml.include("menu.lp", { doc=doc, hook_doc=hook_doc })?> |
| 23 | + |
| 24 | +</div><!-- id="navigation" --> |
| 25 | + |
| 26 | +<div id="content"> |
| 27 | + |
| 28 | +<h1>Preprocessor directives</h1> |
| 29 | + |
| 30 | +<p>List of preprocessor directives</p> |
| 31 | + |
| 32 | +<h2>List</h2> |
| 33 | +<table class="hook_list"> |
| 34 | +<?lua for _, dir_name in ipairs(dir_doc.directives) do |
| 35 | + local dir_data = dir_doc.directives[dir_name]?> |
| 36 | + <tr> |
| 37 | + <td class="name" nowrap><a href="#<?lua=dir_data.name?>">--@<?lua=dir_name?></a> <?lua=table.concat(dir_data.param, ", ")?></td> |
| 38 | + <td class="summary"><?lua=dir_data.summary?></td> |
| 39 | + </tr> |
| 40 | +<?lua end?> |
| 41 | +</table> |
| 42 | + |
| 43 | +<br/> |
| 44 | +<br/> |
| 45 | + |
| 46 | +<dl class="hook"> |
| 47 | +<?lua for _, dir_name in ipairs(dir_doc.directives) do?> |
| 48 | + <?lua local dir = dir_doc.directives[dir_name] ?> |
| 49 | + <dt><a name="<?lua=dir.name?>"></a><strong>--@<?lua=dir.name?></strong> <?lua=table.concat(dir.param, ", ")?></dt> |
| 50 | + <dd> |
| 51 | + <?lua=dir.description or ""?> |
| 52 | + |
| 53 | + <?lua if type( dir.param ) == "table" and #dir.param > 0 then?> |
| 54 | + <h3>Parameters:</h3> |
| 55 | + <ul> |
| 56 | + <li> |
| 57 | + <code><em><?lua=dir.param[1]?></em></code>: <?lua=dir.param[dir.param[1]] or ""?> |
| 58 | + </li> |
| 59 | + </ul> |
| 60 | + <?lua end?> |
| 61 | + |
| 62 | + <?lua if type(dir.usage) == "string" then?> |
| 63 | + <h3>Usage:</h3> |
| 64 | + <ul><pre class=example><?lua=dir.usage?></pre></ul> |
| 65 | + <?lua elseif type(dir.usage) == "table" then?> |
| 66 | + <h3>Usage:</h3> |
| 67 | + <ul> |
| 68 | + <?lua for _, usage in ipairs(dir.usage) do?> |
| 69 | + <li><pre class=example><?lua= usage ?></pre></li> |
| 70 | + <?lua end?> |
| 71 | + </ul> |
| 72 | + <?lua end?> |
| 73 | + |
| 74 | + </dd> |
| 75 | +<?lua end?> |
| 76 | +</dl> |
| 77 | + |
| 78 | +</div> <!-- id="content" --> |
| 79 | + |
| 80 | +</div> <!-- id="main" --> |
| 81 | + |
| 82 | +<div id="about"> |
| 83 | + <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p> |
| 84 | +</div> <!-- id="about" --> |
| 85 | + |
| 86 | +</div> <!-- id="container" --> |
| 87 | +</body> |
| 88 | +</html> |
0 commit comments