Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

v5.1.0

  • Loading branch information...
commit b63bbe1288c1002935f0cd8113eaec1fdbcebbcb 1 parent 85cbb69
Gwendal Roué authored

Showing 33 changed files with 2,866 additions and 529 deletions. Show diff stats Hide diff stats

  1. +9 8 Reference/html/Classes/GRMustache.html
  2. +335 0 Reference/html/Classes/GRMustacheDynamicPartial.html
  3. +8 6 Reference/html/Classes/GRMustacheFilter.html
  4. +13 19 Reference/html/Classes/GRMustacheHelper.html
  5. +81 11 Reference/html/Classes/GRMustacheInvocation.html
  6. +9 15 Reference/html/Classes/GRMustacheSection.html
  7. +335 0 Reference/html/Classes/GRMustacheSectionHelper.html
  8. +50 80 Reference/html/Classes/GRMustacheTemplate.html
  9. +86 111 Reference/html/Classes/GRMustacheTemplateRepository.html
  10. +412 0 Reference/html/Classes/GRMustacheVariable.html
  11. +336 0 Reference/html/Classes/GRMustacheVariableHelper.html
  12. +5 5 Reference/html/Protocols/GRMustacheFilter.html
  13. +7 118 Reference/html/Protocols/GRMustacheHelper.html
  14. +336 0 Reference/html/Protocols/GRMustacheSectionHelper.html
  15. +8 12 Reference/html/Protocols/GRMustacheTemplateDelegate.html
  16. +12 18 Reference/html/Protocols/GRMustacheTemplateRepositoryDataSource.html
  17. +336 0 Reference/html/Protocols/GRMustacheVariableHelper.html
  18. +25 9 Reference/html/hierarchy.html
  19. +19 7 Reference/html/index.html
  20. +3 1 include/GRMustache.h
  21. +56 2 include/GRMustacheAvailabilityMacros.h
  22. +38 14 include/GRMustacheError.h
  23. +0 10 include/GRMustacheFilter.h
  24. +2 74 include/GRMustacheHelper.h
  25. +1 1  include/GRMustacheInvocation.h
  26. +3 3 include/GRMustacheSection.h
  27. +125 0 include/GRMustacheSectionHelper.h
  28. +4 3 include/GRMustacheTemplateDelegate.h
  29. +76 0 include/GRMustacheVariable.h
  30. +134 0 include/GRMustacheVariableHelper.h
  31. +2 2 include/GRMustacheVersion.h
  32. BIN  lib/libGRMustache5-MacOS.a
  33. BIN  lib/libGRMustache5-iOS.a
17 Reference/html/Classes/GRMustache.html
@@ -7,12 +7,12 @@
7 7 <meta name="viewport" content="width=550" />
8 8 <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
9 9 <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
10   - <meta name="generator" content="appledoc 2.0.5 (build 789)" />
  10 + <meta name="generator" content="appledoc 2.0.6 (build 789)" />
11 11 </head>
12 12 <body>
13 13 <header id="top_header">
14 14 <div id="library" class="hideInXcode">
15   - <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
  15 + <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
16 16 <a id="developerHome" href="../index.html">Gwendal Roué</a>
17 17 </div>
18 18
@@ -222,10 +222,11 @@ <h4 class="method-subtitle">Discussion</h4>
222 222 your development configuration, and to wrap the
223 223 <code>preventNSUndefinedKeyExceptionAttack</code> method call in a #if block, like:</p>
224 224
225   -<pre><code>#ifdef DEBUG
226   -[GRMustache preventNSUndefinedKeyExceptionAttack];
227   -#endif
228   -</code></pre>
  225 +<h1>ifdef DEBUG</h1>
  226 +
  227 +<p><a href="#//api/name/preventNSUndefinedKeyExceptionAttack">[GRMustache preventNSUndefinedKeyExceptionAttack]</a>;</p>
  228 +
  229 +<h1>endif</h1>
229 230
230 231 <p><strong>Companion guide:</strong> <a href="https://github.com/groue/GRMustache/blob/master/Guides/runtime/context_stack.md">https://github.com/groue/GRMustache/blob/master/Guides/runtime/context_stack.md</a></p>
231 232 </div>
@@ -305,9 +306,9 @@ <h4 class="method-subtitle">Declared In</h4>
305 306 <div id="footer">
306 307 <hr />
307 308 <div class="footer-copyright">
308   - <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
  309 + <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
309 310
310   - <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
  311 + <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
311 312
312 313 </div>
313 314 </div>
335 Reference/html/Classes/GRMustacheDynamicPartial.html
... ... @@ -0,0 +1,335 @@
  1 +<!DOCTYPE HTML>
  2 +<html>
  3 + <head>
  4 + <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
  5 + <title>GRMustacheDynamicPartial Class Reference</title>
  6 + <meta id="xcode-display" name="xcode-display" content="render"/>
  7 + <meta name="viewport" content="width=550" />
  8 + <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
  9 + <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
  10 + <meta name="generator" content="appledoc 2.0.6 (build 789)" />
  11 + </head>
  12 + <body>
  13 + <header id="top_header">
  14 + <div id="library" class="hideInXcode">
  15 + <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
  16 + <a id="developerHome" href="../index.html">Gwendal Roué</a>
  17 + </div>
  18 +
  19 + <div id="title" role="banner">
  20 + <h1 class="hideInXcode">GRMustacheDynamicPartial Class Reference</h1>
  21 + </div>
  22 + <ul id="headerButtons" role="toolbar">
  23 + <li id="toc_button">
  24 + <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
  25 + </li>
  26 + <li id="jumpto_button" role="navigation">
  27 + <select id="jumpTo">
  28 + <option value="top">Jump To&#133;</option>
  29 +
  30 + <option value="overview">Overview</option>
  31 +
  32 +
  33 +
  34 +
  35 + <option value="tasks">Tasks</option>
  36 +
  37 +
  38 +
  39 +
  40 +
  41 +
  42 +
  43 + <option value="class_methods">Class Methods</option>
  44 +
  45 + <option value="//api/name/dynamicPartialWithName:">&nbsp;&nbsp;&nbsp;&nbsp;+ dynamicPartialWithName:</option>
  46 +
  47 +
  48 +
  49 +
  50 +
  51 +</select>
  52 + </li>
  53 + </ul>
  54 + </header>
  55 + <nav id="tocContainer" class="isShowingTOC">
  56 + <ul id="toc" role="tree">
  57 +
  58 +<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
  59 +
  60 +
  61 +
  62 +
  63 +<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
  64 +
  65 + <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating Dynamic Partials">Creating Dynamic Partials</a></span></li>
  66 +
  67 +</ul></li>
  68 +
  69 +
  70 +
  71 +
  72 +
  73 +
  74 +
  75 +<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
  76 +
  77 + <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dynamicPartialWithName:">dynamicPartialWithName:</a></span></li>
  78 +
  79 +</ul></li>
  80 +
  81 +
  82 +
  83 +
  84 + </ul>
  85 + </nav>
  86 + <article>
  87 + <div id="contents" class="isShowingTOC" role="main">
  88 + <a title="GRMustacheDynamicPartial Class Reference" name="top"></a>
  89 + <div class="main-navigation navigation-top">
  90 + <ul>
  91 + <li><a href="../index.html">Index</a></li>
  92 + <li><a href="../hierarchy.html">Hierarchy</a></li>
  93 +</ul>
  94 + </div>
  95 + <div id="header">
  96 + <div class="section-header">
  97 + <h1 class="title title-header">GRMustacheDynamicPartial Class Reference</h1>
  98 + </div>
  99 + </div>
  100 + <div id="container">
  101 +
  102 + <div class="section section-specification"><table cellspacing="0"><tbody>
  103 + <tr>
  104 + <td class="specification-title">Inherits from</td>
  105 + <td class="specification-value">NSObject</td>
  106 +</tr><tr>
  107 + <td class="specification-title">Conforms to</td>
  108 + <td class="specification-value"><a href="../Protocols/GRMustacheVariableHelper.html">GRMustacheVariableHelper</a></td>
  109 +</tr><tr>
  110 + <td class="specification-title">Declared in</td>
  111 + <td class="specification-value">GRMustacheVariableHelper.h</td>
  112 +</tr>
  113 + </tbody></table></div>
  114 +
  115 +
  116 +
  117 +
  118 + <div class="section section-overview">
  119 + <a title="Overview" name="overview"></a>
  120 + <h2 class="subtitle subtitle-overview">Overview</h2>
  121 + <p>The GRMustacheDynamicPartial is a specific kind of <a href="../Classes/GRMustacheVariableHelper.html">GRMustacheVariableHelper</a>
  122 +that, given a partial template name, renders this template.</p>
  123 +
  124 +<p><strong>Companion guide:</strong> <a href="https://github.com/groue/GRMustache/blob/master/Guides/helpers.md">https://github.com/groue/GRMustache/blob/master/Guides/helpers.md</a></p>
  125 + </div>
  126 +
  127 +
  128 +
  129 +
  130 +
  131 + <div class="section section-tasks">
  132 + <a title="Tasks" name="tasks"></a>
  133 + <h2 class="subtitle subtitle-tasks">Tasks</h2>
  134 +
  135 +
  136 + <a title="Creating Dynamic Partials" name="task_Creating Dynamic Partials"></a>
  137 +
  138 +<h3 class="subsubtitle task-title">Creating Dynamic Partials</h3>
  139 + <ul class="task-list">
  140 + <li>
  141 + <span class="tooltip">
  142 + <code><a href="#//api/name/dynamicPartialWithName:">+&nbsp;dynamicPartialWithName:</a></code>
  143 + <span class="tooltip"><p>Returns a GRMustacheDynamicPartial that renders a partial template named
  144 +<em>name</em>.</p></span>
  145 + </span>
  146 +
  147 +
  148 +</li>
  149 + </ul>
  150 +
  151 + </div>
  152 +
  153 +
  154 +
  155 +
  156 +
  157 +
  158 +
  159 + <div class="section section-methods">
  160 + <a title="Class Methods" name="class_methods"></a>
  161 + <h2 class="subtitle subtitle-methods">Class Methods</h2>
  162 +
  163 + <div class="section-method">
  164 + <a name="//api/name/dynamicPartialWithName:" title="dynamicPartialWithName:"></a>
  165 + <h3 class="subsubtitle method-title">dynamicPartialWithName:</h3>
  166 +
  167 +
  168 +
  169 + <div class="method-subsection brief-description">
  170 + <p>Returns a GRMustacheDynamicPartial that renders a partial template named
  171 +<em>name</em>.</p>
  172 + </div>
  173 +
  174 +
  175 +
  176 + <div class="method-subsection method-declaration"><code>+ (id)dynamicPartialWithName:(NSString *)<em>name</em></code></div>
  177 +
  178 +
  179 +
  180 + <div class="method-subsection arguments-section parameters">
  181 + <h4 class="method-subtitle parameter-title">Parameters</h4>
  182 +
  183 + <dl class="argument-def parameter-def">
  184 + <dt><em>name</em></dt>
  185 + <dd><p>A template name</p></dd>
  186 + </dl>
  187 +
  188 + </div>
  189 +
  190 +
  191 +
  192 + <div class="method-subsection return">
  193 + <h4 class="method-subtitle parameter-title">Return Value</h4>
  194 + <p>a GRMustacheDynamicPartial</p>
  195 + </div>
  196 +
  197 +
  198 +
  199 + <div class="method-subsection availability">
  200 + <h4 class="method-subtitle parameter-title">Availability</h4>
  201 + <p>v5.1</p>
  202 + </div>
  203 +
  204 +
  205 +
  206 +
  207 +
  208 +
  209 +
  210 +
  211 +
  212 + <div class="method-subsection declared-in-section">
  213 + <h4 class="method-subtitle">Declared In</h4>
  214 + <code class="declared-in-ref">GRMustacheVariableHelper.h</code><br />
  215 + </div>
  216 +
  217 +
  218 +</div>
  219 +
  220 + </div>
  221 +
  222 +
  223 +
  224 +
  225 + </div>
  226 + <div class="main-navigation navigation-bottom">
  227 + <ul>
  228 + <li><a href="../index.html">Index</a></li>
  229 + <li><a href="../hierarchy.html">Hierarchy</a></li>
  230 +</ul>
  231 + </div>
  232 + <div id="footer">
  233 + <hr />
  234 + <div class="footer-copyright">
  235 + <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
  236 +
  237 + <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
  238 +
  239 + </div>
  240 + </div>
  241 + </div>
  242 + </article>
  243 + <script type="text/javascript">
  244 + function jumpToChange()
  245 + {
  246 + window.location.hash = this.options[this.selectedIndex].value;
  247 + }
  248 +
  249 + function toggleTOC()
  250 + {
  251 + var contents = document.getElementById('contents');
  252 + var tocContainer = document.getElementById('tocContainer');
  253 +
  254 + if (this.getAttribute('class') == 'open')
  255 + {
  256 + this.setAttribute('class', '');
  257 + contents.setAttribute('class', '');
  258 + tocContainer.setAttribute('class', '');
  259 +
  260 + window.name = "hideTOC";
  261 + }
  262 + else
  263 + {
  264 + this.setAttribute('class', 'open');
  265 + contents.setAttribute('class', 'isShowingTOC');
  266 + tocContainer.setAttribute('class', 'isShowingTOC');
  267 +
  268 + window.name = "";
  269 + }
  270 + return false;
  271 + }
  272 +
  273 + function toggleTOCEntryChildren(e)
  274 + {
  275 + e.stopPropagation();
  276 + var currentClass = this.getAttribute('class');
  277 + if (currentClass == 'children') {
  278 + this.setAttribute('class', 'children open');
  279 + }
  280 + else if (currentClass == 'children open') {
  281 + this.setAttribute('class', 'children');
  282 + }
  283 + return false;
  284 + }
  285 +
  286 + function tocEntryClick(e)
  287 + {
  288 + e.stopPropagation();
  289 + return true;
  290 + }
  291 +
  292 + function init()
  293 + {
  294 + var selectElement = document.getElementById('jumpTo');
  295 + selectElement.addEventListener('change', jumpToChange, false);
  296 +
  297 + var tocButton = document.getElementById('table_of_contents');
  298 + tocButton.addEventListener('click', toggleTOC, false);
  299 +
  300 + var taskTreeItem = document.getElementById('task_treeitem');
  301 + if (taskTreeItem.getElementsByTagName('li').length > 0)
  302 + {
  303 + taskTreeItem.setAttribute('class', 'children');
  304 + taskTreeItem.firstChild.setAttribute('class', 'disclosure');
  305 + }
  306 +
  307 + var tocList = document.getElementById('toc');
  308 +
  309 + var tocEntries = tocList.getElementsByTagName('li');
  310 + for (var i = 0; i < tocEntries.length; i++) {
  311 + tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
  312 + }
  313 +
  314 + var tocLinks = tocList.getElementsByTagName('a');
  315 + for (var i = 0; i < tocLinks.length; i++) {
  316 + tocLinks[i].addEventListener('click', tocEntryClick, false);
  317 + }
  318 +
  319 + if (window.name == "hideTOC") {
  320 + toggleTOC.call(tocButton);
  321 + }
  322 + }
  323 +
  324 + window.onload = init;
  325 +
  326 + // If showing in Xcode, hide the TOC and Header
  327 + if (navigator.userAgent.match(/xcode/i)) {
  328 + document.getElementById("contents").className = "hideInXcode"
  329 + document.getElementById("tocContainer").className = "hideInXcode"
  330 + document.getElementById("top_header").className = "hideInXcode"
  331 + }
  332 +
  333 + </script>
  334 + </body>
  335 +</html>
14 Reference/html/Classes/GRMustacheFilter.html
@@ -7,12 +7,12 @@
7 7 <meta name="viewport" content="width=550" />
8 8 <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
9 9 <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
10   - <meta name="generator" content="appledoc 2.0.5 (build 789)" />
  10 + <meta name="generator" content="appledoc 2.0.6 (build 789)" />
11 11 </head>
12 12 <body>
13 13 <header id="top_header">
14 14 <div id="library" class="hideInXcode">
15   - <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
  15 + <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
16 16 <a id="developerHome" href="../index.html">Gwendal Roué</a>
17 17 </div>
18 18
@@ -62,6 +62,8 @@ <h1 class="hideInXcode">GRMustacheFilter Class Reference</h1>
62 62
63 63 <li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
64 64
  65 + <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating Filters">Creating Filters</a></span></li>
  66 +
65 67 </ul></li>
66 68
67 69
@@ -131,9 +133,9 @@ <h2 class="subtitle subtitle-overview">Overview</h2>
131 133 <h2 class="subtitle subtitle-tasks">Tasks</h2>
132 134
133 135
  136 + <a title="Creating Filters" name="task_Creating Filters"></a>
134 137
135   -
136   -
  138 +<h3 class="subsubtitle task-title">Creating Filters</h3>
137 139 <ul class="task-list">
138 140 <li>
139 141 <span class="tooltip">
@@ -230,9 +232,9 @@ <h4 class="method-subtitle">Declared In</h4>
230 232 <div id="footer">
231 233 <hr />
232 234 <div class="footer-copyright">
233   - <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
  235 + <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
234 236
235   - <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
  237 + <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
236 238
237 239 </div>
238 240 </div>
32 Reference/html/Classes/GRMustacheHelper.html
@@ -7,12 +7,12 @@
7 7 <meta name="viewport" content="width=550" />
8 8 <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
9 9 <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
10   - <meta name="generator" content="appledoc 2.0.5 (build 789)" />
  10 + <meta name="generator" content="appledoc 2.0.6 (build 789)" />
11 11 </head>
12 12 <body>
13 13 <header id="top_header">
14 14 <div id="library" class="hideInXcode">
15   - <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
  15 + <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
16 16 <a id="developerHome" href="../index.html">Gwendal Roué</a>
17 17 </div>
18 18
@@ -100,13 +100,10 @@ <h1 class="title title-header">GRMustacheHelper Class Reference</h1>
100 100 <div class="section section-specification"><table cellspacing="0"><tbody>
101 101 <tr>
102 102 <td class="specification-title">Inherits from</td>
103   - <td class="specification-value">NSObject</td>
104   -</tr><tr>
105   - <td class="specification-title">Conforms to</td>
106   - <td class="specification-value"><a href="../Protocols/GRMustacheHelper.html">GRMustacheHelper</a></td>
  103 + <td class="specification-value"><a href="../Classes/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a> : NSObject</td>
107 104 </tr><tr>
108 105 <td class="specification-title">Declared in</td>
109   - <td class="specification-value">GRMustacheHelper.h</td>
  106 + <td class="specification-value">GRMustacheSectionHelper.h</td>
110 107 </tr>
111 108 </tbody></table></div>
112 109
@@ -116,10 +113,7 @@ <h1 class="title title-header">GRMustacheHelper Class Reference</h1>
116 113 <div class="section section-overview">
117 114 <a title="Overview" name="overview"></a>
118 115 <h2 class="subtitle subtitle-overview">Overview</h2>
119   - <p>The GRMustacheHelper class helps building mustache helpers without writing a
120   -custom class that conforms to the GRMustacheHelper protocol.</p>
121   -
122   -<p><strong>Companion guide:</strong> <a href="https://github.com/groue/GRMustache/blob/master/Guides/helpers.md">https://github.com/groue/GRMustache/blob/master/Guides/helpers.md</a></p>
  116 + <p>Deprecated. Use <a href="../Classes/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a> instead.</p>
123 117 </div>
124 118
125 119
@@ -138,8 +132,8 @@ <h2 class="subtitle subtitle-tasks">Tasks</h2>
138 132 <li>
139 133 <span class="tooltip">
140 134 <code><a href="#//api/name/helperWithBlock:">+&nbsp;helperWithBlock:</a></code>
141   - <span class="tooltip"><p>Returns a GRMustacheHelper object that executes the provided block when
142   -rendering a section.</p></span>
  135 + <span class="tooltip"><p>Returns a GRMustacheSectionHelper object that executes the provided block
  136 +when rendering a section tag.</p></span>
143 137 </span>
144 138
145 139
@@ -165,8 +159,8 @@ <h3 class="subsubtitle method-title">helperWithBlock:</h3>
165 159
166 160
167 161 <div class="method-subsection brief-description">
168   - <p>Returns a GRMustacheHelper object that executes the provided block when
169   -rendering a section.</p>
  162 + <p>Returns a GRMustacheSectionHelper object that executes the provided block
  163 +when rendering a section tag.</p>
170 164 </div>
171 165
172 166
@@ -189,7 +183,7 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
189 183
190 184 <div class="method-subsection return">
191 185 <h4 class="method-subtitle parameter-title">Return Value</h4>
192   - <p>a GRMustacheHelper object.</p>
  186 + <p>a GRMustacheSectionHelper object.</p>
193 187 </div>
194 188
195 189
@@ -209,7 +203,7 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
209 203
210 204 <div class="method-subsection declared-in-section">
211 205 <h4 class="method-subtitle">Declared In</h4>
212   - <code class="declared-in-ref">GRMustacheHelper.h</code><br />
  206 + <code class="declared-in-ref">GRMustacheSectionHelper.h</code><br />
213 207 </div>
214 208
215 209
@@ -230,9 +224,9 @@ <h4 class="method-subtitle">Declared In</h4>
230 224 <div id="footer">
231 225 <hr />
232 226 <div class="footer-copyright">
233   - <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
  227 + <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
234 228
235   - <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
  229 + <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
236 230
237 231 </div>
238 232 </div>
92 Reference/html/Classes/GRMustacheInvocation.html
@@ -7,12 +7,12 @@
7 7 <meta name="viewport" content="width=550" />
8 8 <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
9 9 <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
10   - <meta name="generator" content="appledoc 2.0.5 (build 789)" />
  10 + <meta name="generator" content="appledoc 2.0.6 (build 789)" />
11 11 </head>
12 12 <body>
13 13 <header id="top_header">
14 14 <div id="library" class="hideInXcode">
15   - <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
  15 + <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
16 16 <a id="developerHome" href="../index.html">Gwendal Roué</a>
17 17 </div>
18 18
@@ -47,6 +47,11 @@ <h1 class="hideInXcode">GRMustacheInvocation Class Reference</h1>
47 47
48 48
49 49
  50 + <option value="instance_methods">Instance Methods</option>
  51 +
  52 + <option value="//api/name/description">&nbsp;&nbsp;&nbsp;&nbsp;- description</option>
  53 +
  54 +
50 55
51 56 </select>
52 57 </li>
@@ -78,6 +83,12 @@ <h1 class="hideInXcode">GRMustacheInvocation Class Reference</h1>
78 83
79 84
80 85
  86 +<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
  87 +
  88 + <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/description">description</a></span></li>
  89 +
  90 +</ul></li>
  91 +
81 92
82 93 </ul>
83 94 </nav>
@@ -114,7 +125,7 @@ <h1 class="title title-header">GRMustacheInvocation Class Reference</h1>
114 125 <a title="Overview" name="overview"></a>
115 126 <h2 class="subtitle subtitle-overview">Overview</h2>
116 127 <p>The GRMustacheInvocation class gives you information about the values that
117   -are found in the context stack when rendering tags such as <code>{{name}}</code>.</p>
  128 +are rendered.</p>
118 129
119 130 <p>You&rsquo;ll be given GRMustacheInvocation instances when providing a
120 131 <a href="../Protocols/GRMustacheTemplateDelegate.html">GRMustacheTemplateDelegate</a> to your templates.</p>
@@ -137,6 +148,13 @@ <h2 class="subtitle subtitle-tasks">Tasks</h2>
137 148 <ul class="task-list">
138 149 <li>
139 150 <span class="tooltip">
  151 + <code><a href="#//api/name/description">&ndash;&nbsp;description</a></code>
  152 + <span class="tooltip"><p>Returns a string that describes the invocation.</p></span>
  153 + </span>
  154 +
  155 +
  156 +</li><li>
  157 + <span class="tooltip">
140 158 <code><a href="#//api/name/returnValue">&nbsp;&nbsp;returnValue</a></code>
141 159 <span class="tooltip"><p>The return value of the invocation.</p></span>
142 160 </span>
@@ -187,10 +205,6 @@ <h4 class="method-subtitle">Discussion</h4>
187 205 <p>For instance, the invocation that you would get for a <code>{{name}}</code> tag would
188 206 have the name in the <code>returnValue</code> property.</p>
189 207
190   -<p>For tags with compound keys, such as <code>{{person.name}}</code>, the value will be
191   -the person&rsquo;s name, if the person could be found in the context stack.
192   -It would be nil otherwise.</p>
193   -
194 208 <p>In a template&rsquo;s delegate methods, you can set the returnValue of an
195 209 invocation, and alter a template rendering.</p>
196 210 </div>
@@ -203,8 +217,6 @@ <h4 class="method-subtitle">Discussion</h4>
203 217 <h4 class="method-subtitle">See Also</h4>
204 218 <ul>
205 219
206   - <li><code><p><a href="#//api/name/key">@property key</a></p></code></li>
207   -
208 220 <li><code><p><a href="../Protocols/GRMustacheTemplateDelegate.html">GRMustacheTemplateDelegate</a></p></code></li>
209 221
210 222 </ul>
@@ -226,6 +238,64 @@ <h4 class="method-subtitle">Declared In</h4>
226 238
227 239
228 240
  241 + <div class="section section-methods">
  242 + <a title="Instance Methods" name="instance_methods"></a>
  243 + <h2 class="subtitle subtitle-methods">Instance Methods</h2>
  244 +
  245 + <div class="section-method">
  246 + <a name="//api/name/description" title="description"></a>
  247 + <h3 class="subsubtitle method-title">description</h3>
  248 +
  249 +
  250 +
  251 + <div class="method-subsection brief-description">
  252 + <p>Returns a string that describes the invocation.</p>
  253 + </div>
  254 +
  255 +
  256 +
  257 + <div class="method-subsection method-declaration"><code>- (NSString *)description</code></div>
  258 +
  259 +
  260 +
  261 +
  262 +
  263 + <div class="method-subsection return">
  264 + <h4 class="method-subtitle parameter-title">Return Value</h4>
  265 + <p>a string that describes the invocation.</p>
  266 + </div>
  267 +
  268 +
  269 +
  270 + <div class="method-subsection availability">
  271 + <h4 class="method-subtitle parameter-title">Availability</h4>
  272 + <p>v1.12</p>
  273 + </div>
  274 +
  275 +
  276 +
  277 + <div class="method-subsection discussion-section">
  278 + <h4 class="method-subtitle">Discussion</h4>
  279 + <p>It contains the original Mustache tag, the line number, and the path, URL, or
  280 +name of the template, if any.</p>
  281 + </div>
  282 +
  283 +
  284 +
  285 +
  286 +
  287 +
  288 +
  289 + <div class="method-subsection declared-in-section">
  290 + <h4 class="method-subtitle">Declared In</h4>
  291 + <code class="declared-in-ref">GRMustacheInvocation.h</code><br />
  292 + </div>
  293 +
  294 +
  295 +</div>
  296 +
  297 + </div>
  298 +
229 299
230 300 </div>
231 301 <div class="main-navigation navigation-bottom">
@@ -237,9 +307,9 @@ <h4 class="method-subtitle">Declared In</h4>
237 307 <div id="footer">
238 308 <hr />
239 309 <div class="footer-copyright">
240   - <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
  310 + <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
241 311
242   - <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
  312 + <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
243 313
244 314 </div>
245 315 </div>
24 Reference/html/Classes/GRMustacheSection.html
@@ -7,12 +7,12 @@
7 7 <meta name="viewport" content="width=550" />
8 8 <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
9 9 <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
10   - <meta name="generator" content="appledoc 2.0.5 (build 789)" />
  10 + <meta name="generator" content="appledoc 2.0.6 (build 789)" />
11 11 </head>
12 12 <body>
13 13 <header id="top_header">
14 14 <div id="library" class="hideInXcode">
15   - <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
  15 + <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
16 16 <a id="developerHome" href="../index.html">Gwendal Roué</a>
17 17 </div>
18 18
@@ -69,8 +69,6 @@ <h1 class="hideInXcode">GRMustacheSection Class Reference</h1>
69 69
70 70 <li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
71 71
72   - <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessing the current rendering context">Accessing the current rendering context</a></span></li>
73   -
74 72 <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessing the literal inner content">Accessing the literal inner content</a></span></li>
75 73
76 74 <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Rendering the inner content">Rendering the inner content</a></span></li>
@@ -140,8 +138,8 @@ <h2 class="subtitle subtitle-overview">Overview</h2>
140 138 <code>{{#name}}...{{/name}}</code>.</p>
141 139
142 140 <p>You will be provided with GRMustacheSection objects when implementing
143   -mustache lambda sections with objects conforming to the <a href="../Classes/GRMustacheHelper.html">GRMustacheHelper</a>
144   -protocol.</p>
  141 +mustache lambda sections with objects conforming to the
  142 +<a href="../Classes/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a> protocol.</p>
145 143
146 144 <p><strong>Companion guide:</strong> <a href="https://github.com/groue/GRMustache/blob/master/Guides/helpers.md">https://github.com/groue/GRMustache/blob/master/Guides/helpers.md</a></p>
147 145 </div>
@@ -252,8 +250,6 @@ <h4 class="method-subtitle">Declared In</h4>
252 250
253 251 </div>
254 252
255   -
256   -
257 253 </div>
258 254
259 255
@@ -336,11 +332,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
336 332
337 333 <dl class="argument-def parameter-def">
338 334 <dt><em>outError</em></dt>
339   - <dd><p>If there is an error loading or parsing template and</p>
340   -
341   -<pre><code> partials, upon return contains an NSError object that
342   - describes the problem.
343   -</code></pre></dd>
  335 + <dd><p>If there is an error loading or parsing template and
  336 +partials, upon return contains an NSError object that
  337 +describes the problem.</p></dd>
344 338 </dl>
345 339
346 340 </div>
@@ -388,9 +382,9 @@ <h4 class="method-subtitle">Declared In</h4>
388 382 <div id="footer">
389 383 <hr />
390 384 <div class="footer-copyright">
391   - <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
  385 + <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
392 386
393   - <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
  387 + <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
394 388
395 389 </div>
396 390 </div>
335 Reference/html/Classes/GRMustacheSectionHelper.html
... ... @@ -0,0 +1,335 @@
  1 +<!DOCTYPE HTML>
  2 +<html>
  3 + <head>
  4 + <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
  5 + <title>GRMustacheSectionHelper Class Reference</title>
  6 + <meta id="xcode-display" name="xcode-display" content="render"/>
  7 + <meta name="viewport" content="width=550" />
  8 + <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
  9 + <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
  10 + <meta name="generator" content="appledoc 2.0.6 (build 789)" />
  11 + </head>
  12 + <body>
  13 + <header id="top_header">
  14 + <div id="library" class="hideInXcode">
  15 + <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
  16 + <a id="developerHome" href="../index.html">Gwendal Roué</a>
  17 + </div>
  18 +
  19 + <div id="title" role="banner">
  20 + <h1 class="hideInXcode">GRMustacheSectionHelper Class Reference</h1>
  21 + </div>
  22 + <ul id="headerButtons" role="toolbar">
  23 + <li id="toc_button">
  24 + <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
  25 + </li>
  26 + <li id="jumpto_button" role="navigation">
  27 + <select id="jumpTo">
  28 + <option value="top">Jump To&#133;</option>
  29 +
  30 + <option value="overview">Overview</option>
  31 +
  32 +
  33 +
  34 +
  35 + <option value="tasks">Tasks</option>
  36 +
  37 +
  38 +
  39 +
  40 +
  41 +
  42 +
  43 + <option value="class_methods">Class Methods</option>
  44 +
  45 + <option value="//api/name/helperWithBlock:">&nbsp;&nbsp;&nbsp;&nbsp;+ helperWithBlock:</option>
  46 +
  47 +
  48 +
  49 +
  50 +
  51 +</select>
  52 + </li>
  53 + </ul>
  54 + </header>
  55 + <nav id="tocContainer" class="isShowingTOC">
  56 + <ul id="toc" role="tree">
  57 +
  58 +<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
  59 +
  60 +
  61 +
  62 +
  63 +<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
  64 +
  65 + <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating Helpers">Creating Helpers</a></span></li>
  66 +
  67 +</ul></li>
  68 +
  69 +
  70 +
  71 +
  72 +
  73 +
  74 +
  75 +<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
  76 +
  77 + <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/helperWithBlock:">helperWithBlock:</a></span></li>
  78 +
  79 +</ul></li>
  80 +
  81 +
  82 +
  83 +
  84 + </ul>
  85 + </nav>
  86 + <article>
  87 + <div id="contents" class="isShowingTOC" role="main">
  88 + <a title="GRMustacheSectionHelper Class Reference" name="top"></a>
  89 + <div class="main-navigation navigation-top">
  90 + <ul>
  91 + <li><a href="../index.html">Index</a></li>
  92 + <li><a href="../hierarchy.html">Hierarchy</a></li>
  93 +</ul>
  94 + </div>
  95 + <div id="header">
  96 + <div class="section-header">
  97 + <h1 class="title title-header">GRMustacheSectionHelper Class Reference</h1>
  98 + </div>
  99 + </div>
  100 + <div id="container">
  101 +
  102 + <div class="section section-specification"><table cellspacing="0"><tbody>
  103 + <tr>
  104 + <td class="specification-title">Inherits from</td>
  105 + <td class="specification-value">NSObject</td>
  106 +</tr><tr>
  107 + <td class="specification-title">Conforms to</td>
  108 + <td class="specification-value"><a href="../Protocols/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a></td>
  109 +</tr><tr>
  110 + <td class="specification-title">Declared in</td>
  111 + <td class="specification-value">GRMustacheSectionHelper.h</td>
  112 +</tr>
  113 + </tbody></table></div>
  114 +
  115 +
  116 +
  117 +
  118 + <div class="section section-overview">
  119 + <a title="Overview" name="overview"></a>
  120 + <h2 class="subtitle subtitle-overview">Overview</h2>
  121 + <p>The GRMustacheSectionHelper class helps building mustache helpers without
  122 +writing a custom class that conforms to the GRMustacheSectionHelper protocol.</p>
  123 +
  124 +<p><strong>Companion guide:</strong> <a href="https://github.com/groue/GRMustache/blob/master/Guides/helpers.md">https://github.com/groue/GRMustache/blob/master/Guides/helpers.md</a></p>
  125 + </div>
  126 +
  127 +
  128 +
  129 +
  130 +
  131 + <div class="section section-tasks">
  132 + <a title="Tasks" name="tasks"></a>
  133 + <h2 class="subtitle subtitle-tasks">Tasks</h2>
  134 +
  135 +
  136 + <a title="Creating Helpers" name="task_Creating Helpers"></a>
  137 +
  138 +<h3 class="subsubtitle task-title">Creating Helpers</h3>
  139 + <ul class="task-list">
  140 + <li>
  141 + <span class="tooltip">
  142 + <code><a href="#//api/name/helperWithBlock:">+&nbsp;helperWithBlock:</a></code>
  143 + <span class="tooltip"><p>Returns a GRMustacheSectionHelper object that executes the provided block
  144 +when rendering a section tag.</p></span>
  145 + </span>
  146 +
  147 +
  148 +</li>
  149 + </ul>
  150 +
  151 + </div>
  152 +
  153 +
  154 +
  155 +
  156 +
  157 +
  158 +
  159 + <div class="section section-methods">
  160 + <a title="Class Methods" name="class_methods"></a>
  161 + <h2 class="subtitle subtitle-methods">Class Methods</h2>
  162 +
  163 + <div class="section-method">
  164 + <a name="//api/name/helperWithBlock:" title="helperWithBlock:"></a>
  165 + <h3 class="subsubtitle method-title">helperWithBlock:</h3>
  166 +
  167 +
  168 +
  169 + <div class="method-subsection brief-description">
  170 + <p>Returns a GRMustacheSectionHelper object that executes the provided block
  171 +when rendering a section tag.</p>
  172 + </div>
  173 +
  174 +
  175 +
  176 + <div class="method-subsection method-declaration"><code>+ (id)helperWithBlock:(NSString *( ^ ) ( GRMustacheSection *section ))<em>block</em></code></div>
  177 +
  178 +
  179 +
  180 + <div class="method-subsection arguments-section parameters">
  181 + <h4 class="method-subtitle parameter-title">Parameters</h4>
  182 +
  183 + <dl class="argument-def parameter-def">
  184 + <dt><em>block</em></dt>
  185 + <dd><p>The block that renders a section.</p></dd>
  186 + </dl>
  187 +
  188 + </div>
  189 +
  190 +
  191 +
  192 + <div class="method-subsection return">
  193 + <h4 class="method-subtitle parameter-title">Return Value</h4>
  194 + <p>a GRMustacheSectionHelper object.</p>
  195 + </div>
  196 +
  197 +
  198 +
  199 + <div class="method-subsection availability">
  200 + <h4 class="method-subtitle parameter-title">Availability</h4>
  201 + <p>v2.0</p>
  202 + </div>
  203 +
  204 +
  205 +
  206 +
  207 +
  208 +
  209 +
  210 +
  211 +
  212 + <div class="method-subsection declared-in-section">
  213 + <h4 class="method-subtitle">Declared In</h4>
  214 + <code class="declared-in-ref">GRMustacheSectionHelper.h</code><br />
  215 + </div>
  216 +
  217 +
  218 +</div>
  219 +
  220 + </div>
  221 +
  222 +
  223 +
  224 +
  225 + </div>
  226 + <div class="main-navigation navigation-bottom">
  227 + <ul>
  228 + <li><a href="../index.html">Index</a></li>
  229 + <li><a href="../hierarchy.html">Hierarchy</a></li>
  230 +</ul>
  231 + </div>
  232 + <div id="footer">
  233 + <hr />
  234 + <div class="footer-copyright">
  235 + <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
  236 +
  237 + <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
  238 +
  239 + </div>
  240 + </div>
  241 + </div>
  242 + </article>
  243 + <script type="text/javascript">
  244 + function jumpToChange()
  245 + {
  246 + window.location.hash = this.options[this.selectedIndex].value;
  247 + }
  248 +
  249 + function toggleTOC()
  250 + {
  251 + var contents = document.getElementById('contents');
  252 + var tocContainer = document.getElementById('tocContainer');
  253 +
  254 + if (this.getAttribute('class') == 'open')
  255 + {
  256 + this.setAttribute('class', '');
  257 + contents.setAttribute('class', '');
  258 + tocContainer.setAttribute('class', '');
  259 +
  260 + window.name = "hideTOC";
  261 + }
  262 + else
  263 + {
  264 + this.setAttribute('class', 'open');
  265 + contents.setAttribute('class', 'isShowingTOC');
  266 + tocContainer.setAttribute('class', 'isShowingTOC');
  267 +
  268 + window.name = "";
  269 + }
  270 + return false;
  271 + }
  272 +
  273 + function toggleTOCEntryChildren(e)
  274 + {
  275 + e.stopPropagation();
  276 + var currentClass = this.getAttribute('class');
  277 + if (currentClass == 'children') {
  278 + this.setAttribute('class', 'children open');
  279 + }
  280 + else if (currentClass == 'children open') {
  281 + this.setAttribute('class', 'children');
  282 + }
  283 + return false;
  284 + }
  285 +
  286 + function tocEntryClick(e)
  287 + {
  288 + e.stopPropagation();
  289 + return true;
  290 + }
  291 +
  292 + function init()
  293 + {
  294 + var selectElement = document.getElementById('jumpTo');
  295 + selectElement.addEventListener('change', jumpToChange, false);
  296 +
  297 + var tocButton = document.getElementById('table_of_contents');
  298 + tocButton.addEventListener('click', toggleTOC, false);
  299 +
  300 + var taskTreeItem = document.getElementById('task_treeitem');
  301 + if (taskTreeItem.getElementsByTagName('li').length > 0)
  302 + {
  303 + taskTreeItem.setAttribute('class', 'children');
  304 + taskTreeItem.firstChild.setAttribute('class', 'disclosure');
  305 + }
  306 +
  307 + var tocList = document.getElementById('toc');