Permalink
Browse files

v5.1.0

  • Loading branch information...
1 parent 85cbb69 commit b63bbe1288c1002935f0cd8113eaec1fdbcebbcb @groue committed Sep 22, 2012
Showing with 2,866 additions and 529 deletions.
  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
View
17 Reference/html/Classes/GRMustache.html
@@ -7,12 +7,12 @@
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.0.5 (build 789)" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
<a id="developerHome" href="../index.html">Gwendal Roué</a>
</div>
@@ -222,10 +222,11 @@ <h4 class="method-subtitle">Discussion</h4>
your development configuration, and to wrap the
<code>preventNSUndefinedKeyExceptionAttack</code> method call in a #if block, like:</p>
-<pre><code>#ifdef DEBUG
-[GRMustache preventNSUndefinedKeyExceptionAttack];
-#endif
-</code></pre>
+<h1>ifdef DEBUG</h1>
+
+<p><a href="#//api/name/preventNSUndefinedKeyExceptionAttack">[GRMustache preventNSUndefinedKeyExceptionAttack]</a>;</p>
+
+<h1>endif</h1>
<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>
</div>
@@ -305,9 +306,9 @@ <h4 class="method-subtitle">Declared In</h4>
<div id="footer">
<hr />
<div class="footer-copyright">
- <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
</div>
</div>
View
335 Reference/html/Classes/GRMustacheDynamicPartial.html
@@ -0,0 +1,335 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>GRMustacheDynamicPartial Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
+ <a id="developerHome" href="../index.html">Gwendal Roué</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">GRMustacheDynamicPartial Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+
+
+ <option value="class_methods">Class Methods</option>
+
+ <option value="//api/name/dynamicPartialWithName:">&nbsp;&nbsp;&nbsp;&nbsp;+ dynamicPartialWithName:</option>
+
+
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating Dynamic Partials">Creating Dynamic Partials</a></span></li>
+
+</ul></li>
+
+
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/dynamicPartialWithName:">dynamicPartialWithName:</a></span></li>
+
+</ul></li>
+
+
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="GRMustacheDynamicPartial Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">GRMustacheDynamicPartial Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title">Conforms to</td>
+ <td class="specification-value"><a href="../Protocols/GRMustacheVariableHelper.html">GRMustacheVariableHelper</a></td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">GRMustacheVariableHelper.h</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>The GRMustacheDynamicPartial is a specific kind of <a href="../Classes/GRMustacheVariableHelper.html">GRMustacheVariableHelper</a>
+that, given a partial template name, renders this template.</p>
+
+<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>
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Creating Dynamic Partials" name="task_Creating Dynamic Partials"></a>
+
+<h3 class="subsubtitle task-title">Creating Dynamic Partials</h3>
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/dynamicPartialWithName:">+&nbsp;dynamicPartialWithName:</a></code>
+ <span class="tooltip"><p>Returns a GRMustacheDynamicPartial that renders a partial template named
+<em>name</em>.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Class Methods" name="class_methods"></a>
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/dynamicPartialWithName:" title="dynamicPartialWithName:"></a>
+ <h3 class="subsubtitle method-title">dynamicPartialWithName:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Returns a GRMustacheDynamicPartial that renders a partial template named
+<em>name</em>.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (id)dynamicPartialWithName:(NSString *)<em>name</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>name</em></dt>
+ <dd><p>A template name</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>a GRMustacheDynamicPartial</p>
+ </div>
+
+
+
+ <div class="method-subsection availability">
+ <h4 class="method-subtitle parameter-title">Availability</h4>
+ <p>v5.1</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">GRMustacheVariableHelper.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html>
View
14 Reference/html/Classes/GRMustacheFilter.html
@@ -7,12 +7,12 @@
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.0.5 (build 789)" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
<a id="developerHome" href="../index.html">Gwendal Roué</a>
</div>
@@ -62,6 +62,8 @@ <h1 class="hideInXcode">GRMustacheFilter Class Reference</h1>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating Filters">Creating Filters</a></span></li>
+
</ul></li>
@@ -131,9 +133,9 @@ <h2 class="subtitle subtitle-overview">Overview</h2>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
+ <a title="Creating Filters" name="task_Creating Filters"></a>
-
-
+<h3 class="subsubtitle task-title">Creating Filters</h3>
<ul class="task-list">
<li>
<span class="tooltip">
@@ -230,9 +232,9 @@ <h4 class="method-subtitle">Declared In</h4>
<div id="footer">
<hr />
<div class="footer-copyright">
- <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
</div>
</div>
View
32 Reference/html/Classes/GRMustacheHelper.html
@@ -7,12 +7,12 @@
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.0.5 (build 789)" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
<a id="developerHome" href="../index.html">Gwendal Roué</a>
</div>
@@ -100,13 +100,10 @@ <h1 class="title title-header">GRMustacheHelper Class Reference</h1>
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
- <td class="specification-value">NSObject</td>
-</tr><tr>
- <td class="specification-title">Conforms to</td>
- <td class="specification-value"><a href="../Protocols/GRMustacheHelper.html">GRMustacheHelper</a></td>
+ <td class="specification-value"><a href="../Classes/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a> : NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
- <td class="specification-value">GRMustacheHelper.h</td>
+ <td class="specification-value">GRMustacheSectionHelper.h</td>
</tr>
</tbody></table></div>
@@ -116,10 +113,7 @@ <h1 class="title title-header">GRMustacheHelper Class Reference</h1>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
- <p>The GRMustacheHelper class helps building mustache helpers without writing a
-custom class that conforms to the GRMustacheHelper protocol.</p>
-
-<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>
+ <p>Deprecated. Use <a href="../Classes/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a> instead.</p>
</div>
@@ -138,8 +132,8 @@ <h2 class="subtitle subtitle-tasks">Tasks</h2>
<li>
<span class="tooltip">
<code><a href="#//api/name/helperWithBlock:">+&nbsp;helperWithBlock:</a></code>
- <span class="tooltip"><p>Returns a GRMustacheHelper object that executes the provided block when
-rendering a section.</p></span>
+ <span class="tooltip"><p>Returns a GRMustacheSectionHelper object that executes the provided block
+when rendering a section tag.</p></span>
</span>
@@ -165,8 +159,8 @@ <h3 class="subsubtitle method-title">helperWithBlock:</h3>
<div class="method-subsection brief-description">
- <p>Returns a GRMustacheHelper object that executes the provided block when
-rendering a section.</p>
+ <p>Returns a GRMustacheSectionHelper object that executes the provided block
+when rendering a section tag.</p>
</div>
@@ -189,7 +183,7 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
- <p>a GRMustacheHelper object.</p>
+ <p>a GRMustacheSectionHelper object.</p>
</div>
@@ -209,7 +203,7 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
- <code class="declared-in-ref">GRMustacheHelper.h</code><br />
+ <code class="declared-in-ref">GRMustacheSectionHelper.h</code><br />
</div>
@@ -230,9 +224,9 @@ <h4 class="method-subtitle">Declared In</h4>
<div id="footer">
<hr />
<div class="footer-copyright">
- <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
</div>
</div>
View
92 Reference/html/Classes/GRMustacheInvocation.html
@@ -7,12 +7,12 @@
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.0.5 (build 789)" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
<a id="developerHome" href="../index.html">Gwendal Roué</a>
</div>
@@ -47,6 +47,11 @@ <h1 class="hideInXcode">GRMustacheInvocation Class Reference</h1>
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/description">&nbsp;&nbsp;&nbsp;&nbsp;- description</option>
+
+
</select>
</li>
@@ -78,6 +83,12 @@ <h1 class="hideInXcode">GRMustacheInvocation Class Reference</h1>
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/description">description</a></span></li>
+
+</ul></li>
+
</ul>
</nav>
@@ -114,7 +125,7 @@ <h1 class="title title-header">GRMustacheInvocation Class Reference</h1>
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>The GRMustacheInvocation class gives you information about the values that
-are found in the context stack when rendering tags such as <code>{{name}}</code>.</p>
+are rendered.</p>
<p>You&rsquo;ll be given GRMustacheInvocation instances when providing a
<a href="../Protocols/GRMustacheTemplateDelegate.html">GRMustacheTemplateDelegate</a> to your templates.</p>
@@ -137,6 +148,13 @@ <h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
+ <code><a href="#//api/name/description">&ndash;&nbsp;description</a></code>
+ <span class="tooltip"><p>Returns a string that describes the invocation.</p></span>
+ </span>
+
+
+</li><li>
+ <span class="tooltip">
<code><a href="#//api/name/returnValue">&nbsp;&nbsp;returnValue</a></code>
<span class="tooltip"><p>The return value of the invocation.</p></span>
</span>
@@ -187,10 +205,6 @@ <h4 class="method-subtitle">Discussion</h4>
<p>For instance, the invocation that you would get for a <code>{{name}}</code> tag would
have the name in the <code>returnValue</code> property.</p>
-<p>For tags with compound keys, such as <code>{{person.name}}</code>, the value will be
-the person&rsquo;s name, if the person could be found in the context stack.
-It would be nil otherwise.</p>
-
<p>In a template&rsquo;s delegate methods, you can set the returnValue of an
invocation, and alter a template rendering.</p>
</div>
@@ -203,8 +217,6 @@ <h4 class="method-subtitle">Discussion</h4>
<h4 class="method-subtitle">See Also</h4>
<ul>
- <li><code><p><a href="#//api/name/key">@property key</a></p></code></li>
-
<li><code><p><a href="../Protocols/GRMustacheTemplateDelegate.html">GRMustacheTemplateDelegate</a></p></code></li>
</ul>
@@ -226,6 +238,64 @@ <h4 class="method-subtitle">Declared In</h4>
+ <div class="section section-methods">
+ <a title="Instance Methods" name="instance_methods"></a>
+ <h2 class="subtitle subtitle-methods">Instance Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/description" title="description"></a>
+ <h3 class="subsubtitle method-title">description</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Returns a string that describes the invocation.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>- (NSString *)description</code></div>
+
+
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>a string that describes the invocation.</p>
+ </div>
+
+
+
+ <div class="method-subsection availability">
+ <h4 class="method-subtitle parameter-title">Availability</h4>
+ <p>v1.12</p>
+ </div>
+
+
+
+ <div class="method-subsection discussion-section">
+ <h4 class="method-subtitle">Discussion</h4>
+ <p>It contains the original Mustache tag, the line number, and the path, URL, or
+name of the template, if any.</p>
+ </div>
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">GRMustacheInvocation.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
</div>
<div class="main-navigation navigation-bottom">
@@ -237,9 +307,9 @@ <h4 class="method-subtitle">Declared In</h4>
<div id="footer">
<hr />
<div class="footer-copyright">
- <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
</div>
</div>
View
24 Reference/html/Classes/GRMustacheSection.html
@@ -7,12 +7,12 @@
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.0.5 (build 789)" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
<a id="developerHome" href="../index.html">Gwendal Roué</a>
</div>
@@ -69,8 +69,6 @@ <h1 class="hideInXcode">GRMustacheSection Class Reference</h1>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
- <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessing the current rendering context">Accessing the current rendering context</a></span></li>
-
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessing the literal inner content">Accessing the literal inner content</a></span></li>
<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>
<code>{{#name}}...{{/name}}</code>.</p>
<p>You will be provided with GRMustacheSection objects when implementing
-mustache lambda sections with objects conforming to the <a href="../Classes/GRMustacheHelper.html">GRMustacheHelper</a>
-protocol.</p>
+mustache lambda sections with objects conforming to the
+<a href="../Classes/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a> protocol.</p>
<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>
</div>
@@ -252,8 +250,6 @@ <h4 class="method-subtitle">Declared In</h4>
</div>
-
-
</div>
@@ -336,11 +332,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -388,9 +382,9 @@ <h4 class="method-subtitle">Declared In</h4>
<div id="footer">
<hr />
<div class="footer-copyright">
- <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
</div>
</div>
View
335 Reference/html/Classes/GRMustacheSectionHelper.html
@@ -0,0 +1,335 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>GRMustacheSectionHelper Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
+ <a id="developerHome" href="../index.html">Gwendal Roué</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">GRMustacheSectionHelper Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+
+
+ <option value="class_methods">Class Methods</option>
+
+ <option value="//api/name/helperWithBlock:">&nbsp;&nbsp;&nbsp;&nbsp;+ helperWithBlock:</option>
+
+
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating Helpers">Creating Helpers</a></span></li>
+
+</ul></li>
+
+
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/helperWithBlock:">helperWithBlock:</a></span></li>
+
+</ul></li>
+
+
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="GRMustacheSectionHelper Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">GRMustacheSectionHelper Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title">Conforms to</td>
+ <td class="specification-value"><a href="../Protocols/GRMustacheSectionHelper.html">GRMustacheSectionHelper</a></td>
+</tr><tr>
+ <td class="specification-title">Declared in</td>
+ <td class="specification-value">GRMustacheSectionHelper.h</td>
+</tr>
+ </tbody></table></div>
+
+
+
+
+ <div class="section section-overview">
+ <a title="Overview" name="overview"></a>
+ <h2 class="subtitle subtitle-overview">Overview</h2>
+ <p>The GRMustacheSectionHelper class helps building mustache helpers without
+writing a custom class that conforms to the GRMustacheSectionHelper protocol.</p>
+
+<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>
+ </div>
+
+
+
+
+
+ <div class="section section-tasks">
+ <a title="Tasks" name="tasks"></a>
+ <h2 class="subtitle subtitle-tasks">Tasks</h2>
+
+
+ <a title="Creating Helpers" name="task_Creating Helpers"></a>
+
+<h3 class="subsubtitle task-title">Creating Helpers</h3>
+ <ul class="task-list">
+ <li>
+ <span class="tooltip">
+ <code><a href="#//api/name/helperWithBlock:">+&nbsp;helperWithBlock:</a></code>
+ <span class="tooltip"><p>Returns a GRMustacheSectionHelper object that executes the provided block
+when rendering a section tag.</p></span>
+ </span>
+
+
+</li>
+ </ul>
+
+ </div>
+
+
+
+
+
+
+
+ <div class="section section-methods">
+ <a title="Class Methods" name="class_methods"></a>
+ <h2 class="subtitle subtitle-methods">Class Methods</h2>
+
+ <div class="section-method">
+ <a name="//api/name/helperWithBlock:" title="helperWithBlock:"></a>
+ <h3 class="subsubtitle method-title">helperWithBlock:</h3>
+
+
+
+ <div class="method-subsection brief-description">
+ <p>Returns a GRMustacheSectionHelper object that executes the provided block
+when rendering a section tag.</p>
+ </div>
+
+
+
+ <div class="method-subsection method-declaration"><code>+ (id)helperWithBlock:(NSString *( ^ ) ( GRMustacheSection *section ))<em>block</em></code></div>
+
+
+
+ <div class="method-subsection arguments-section parameters">
+ <h4 class="method-subtitle parameter-title">Parameters</h4>
+
+ <dl class="argument-def parameter-def">
+ <dt><em>block</em></dt>
+ <dd><p>The block that renders a section.</p></dd>
+ </dl>
+
+ </div>
+
+
+
+ <div class="method-subsection return">
+ <h4 class="method-subtitle parameter-title">Return Value</h4>
+ <p>a GRMustacheSectionHelper object.</p>
+ </div>
+
+
+
+ <div class="method-subsection availability">
+ <h4 class="method-subtitle parameter-title">Availability</h4>
+ <p>v2.0</p>
+ </div>
+
+
+
+
+
+
+
+
+
+ <div class="method-subsection declared-in-section">
+ <h4 class="method-subtitle">Declared In</h4>
+ <code class="declared-in-ref">GRMustacheSectionHelper.h</code><br />
+ </div>
+
+
+</div>
+
+ </div>
+
+
+
+
+ </div>
+ <div class="main-navigation navigation-bottom">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="footer">
+ <hr />
+ <div class="footer-copyright">
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
+
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
+
+ </div>
+ </div>
+ </div>
+ </article>
+ <script type="text/javascript">
+ function jumpToChange()
+ {
+ window.location.hash = this.options[this.selectedIndex].value;
+ }
+
+ function toggleTOC()
+ {
+ var contents = document.getElementById('contents');
+ var tocContainer = document.getElementById('tocContainer');
+
+ if (this.getAttribute('class') == 'open')
+ {
+ this.setAttribute('class', '');
+ contents.setAttribute('class', '');
+ tocContainer.setAttribute('class', '');
+
+ window.name = "hideTOC";
+ }
+ else
+ {
+ this.setAttribute('class', 'open');
+ contents.setAttribute('class', 'isShowingTOC');
+ tocContainer.setAttribute('class', 'isShowingTOC');
+
+ window.name = "";
+ }
+ return false;
+ }
+
+ function toggleTOCEntryChildren(e)
+ {
+ e.stopPropagation();
+ var currentClass = this.getAttribute('class');
+ if (currentClass == 'children') {
+ this.setAttribute('class', 'children open');
+ }
+ else if (currentClass == 'children open') {
+ this.setAttribute('class', 'children');
+ }
+ return false;
+ }
+
+ function tocEntryClick(e)
+ {
+ e.stopPropagation();
+ return true;
+ }
+
+ function init()
+ {
+ var selectElement = document.getElementById('jumpTo');
+ selectElement.addEventListener('change', jumpToChange, false);
+
+ var tocButton = document.getElementById('table_of_contents');
+ tocButton.addEventListener('click', toggleTOC, false);
+
+ var taskTreeItem = document.getElementById('task_treeitem');
+ if (taskTreeItem.getElementsByTagName('li').length > 0)
+ {
+ taskTreeItem.setAttribute('class', 'children');
+ taskTreeItem.firstChild.setAttribute('class', 'disclosure');
+ }
+
+ var tocList = document.getElementById('toc');
+
+ var tocEntries = tocList.getElementsByTagName('li');
+ for (var i = 0; i < tocEntries.length; i++) {
+ tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
+ }
+
+ var tocLinks = tocList.getElementsByTagName('a');
+ for (var i = 0; i < tocLinks.length; i++) {
+ tocLinks[i].addEventListener('click', tocEntryClick, false);
+ }
+
+ if (window.name == "hideTOC") {
+ toggleTOC.call(tocButton);
+ }
+ }
+
+ window.onload = init;
+
+ // If showing in Xcode, hide the TOC and Header
+ if (navigator.userAgent.match(/xcode/i)) {
+ document.getElementById("contents").className = "hideInXcode"
+ document.getElementById("tocContainer").className = "hideInXcode"
+ document.getElementById("top_header").className = "hideInXcode"
+ }
+
+ </script>
+ </body>
+</html>
View
130 Reference/html/Classes/GRMustacheTemplate.html
@@ -7,12 +7,12 @@
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.0.5 (build 789)" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
<a id="developerHome" href="../index.html">Gwendal Roué</a>
</div>
@@ -440,7 +440,7 @@ <h3 class="subsubtitle method-title">delegate</h3>
- <div class="method-subsection method-declaration"><code>@property (nonatomic, assign) id&lt;&gt; delegate</code></div>
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, assign) id&lt;GRMustacheTemplateDelegate&gt; delegate</code></div>
@@ -522,11 +522,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -607,11 +605,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -697,11 +693,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -795,11 +789,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -883,11 +875,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -958,11 +948,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1048,11 +1036,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1143,11 +1129,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1246,11 +1230,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1339,11 +1321,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1404,11 +1384,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1484,11 +1462,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1569,11 +1545,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1662,11 +1636,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1745,11 +1717,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -2085,9 +2055,9 @@ <h4 class="method-subtitle">Declared In</h4>
<div id="footer">
<hr />
<div class="footer-copyright">
- <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
</div>
</div>
View
197 Reference/html/Classes/GRMustacheTemplateRepository.html
@@ -7,12 +7,12 @@
<meta name="viewport" content="width=550" />
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
- <meta name="generator" content="appledoc 2.0.5 (build 789)" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
- <h1><a id="libraryTitle" href="../index.html">GRMustache </a></h1>
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
<a id="developerHome" href="../index.html">Gwendal Roué</a>
</div>
@@ -387,7 +387,7 @@ <h3 class="subsubtitle method-title">dataSource</h3>
- <div class="method-subsection method-declaration"><code>@property (nonatomic, assign) id&lt;&gt; dataSource</code></div>
+ <div class="method-subsection method-declaration"><code>@property (nonatomic, assign) id&lt;GRMustacheTemplateRepositoryDataSource&gt; dataSource</code></div>
@@ -470,33 +470,30 @@ <h4 class="method-subtitle">Discussion</h4>
<p>Until it is provided with a data source, it is unable to load template by
names, and unable to process partial tags such as <code>{{&gt;partial}}</code>:</p>
-<pre><code>GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepository];
-NSError *error;
+<p>GRMustacheTemplateRepository <em>repository = <a href="#//api/name/templateRepository">[GRMustacheTemplateRepository templateRepository]</a>;
+NSError </em>error;</p>
-// Returns nil, and sets error to an NSError of domain
+<p>// Returns nil, and sets error to an NSError of domain
// GRMustacheErrorDomain, code GRMustacheErrorCodeTemplateNotFound.
-[repository templateForName:@"foo" error:&amp;error];
+[repository templateForName:@&ldquo;foo&rdquo; error:&amp;error];</p>
-// Returns nil, and sets error to an NSError of domain GRMustacheErrorDomain,
+<p>// Returns nil, and sets error to an NSError of domain GRMustacheErrorDomain,
// code GRMustacheErrorCodeTemplateNotFound.
-[repository templateFromString:@"{{&gt;partial}}" error:&amp;error];
-</code></pre>
+[repository templateFromString:@&ldquo;{{>partial}}&rdquo; error:&amp;error];</p>
<p>It is, however, able to process Mustache template strings without any
partial:</p>
-<pre><code>GRMustacheTemplate *template = [repository templateFromString:@"Hello {{name}}!" error:NULL];
-</code></pre>
+<p><a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateFromString:@&ldquo;Hello {{name}}!&rdquo; error:NULL];</p>
<p>You will give it a data source conforming to the
<a href="../Protocols/GRMustacheTemplateRepositoryDataSource.html">GRMustacheTemplateRepositoryDataSource</a> protocol in order to load template and
partials by name:</p>
-<pre><code>repository.dataSource = ...;
+<p>repository.<a href="#//api/name/dataSource">dataSource</a> = &hellip;;</p>
-// Returns a template built from the string provided by the dataSource.
-[repository templateForName:@"foo" error:NULL];
-</code></pre>
+<p>// Returns a template built from the string provided by the <a href="#//api/name/dataSource">dataSource</a>.
+[repository templateForName:@&ldquo;foo&rdquo; error:NULL];</p>
</div>
@@ -570,14 +567,13 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates stored in /path/to/templates
-NSURL *baseURL = [NSURL fileURLWithPath:@"/path/to/templates"];
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithBaseURL:baseURL];
+<p>// Creates a repository for templates stored in /path/to/templates
+NSURL <em>baseURL = [NSURL fileURLWithPath:@&ldquo;/path/to/templates&rdquo;];
+GRMustacheTemplateRepository </em>repository = [GRMustacheTemplateRepository templateRepositoryWithBaseURL:baseURL];</p>
-// Returns a template for the file stored in
+<p>// Returns a template for the file stored in
// /path/to/templates/profile.mustache
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>A partial tag <code>{{&gt;partial}}</code> loads a partial template stored in a file named
<code>partial.mustache</code>, located in the enclosing template&rsquo;s directory.</p>
@@ -590,10 +586,9 @@ <h4 class="method-subtitle">Discussion</h4>
<p>When you ask the repository to parse a raw template string, partials are
loaded from the base URL:</p>
-<pre><code>// The partial would be loaded from
+<p>// The partial would be loaded from
// /path/to/templates/partials/achievements.mustache
-GRMustacheTemplate *template = [repository templateFromString:@"{{&gt;partials/achievements}}" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateFromString:@&ldquo;{{>partials/achievements}}&rdquo; error:NULL];</p>
</div>
@@ -663,16 +658,15 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates of extension `.txt` stored in
+<p>// Creates a repository for templates of extension <code>.txt</code> stored in
// /path/to/templates
-NSURL *baseURL = [NSURL fileURLWithPath:@"/path/to/templates"];
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithBaseURL:baseURL
- templateExtension:@"txt"];
+NSURL <em>baseURL = [NSURL fileURLWithPath:@&ldquo;/path/to/templates&rdquo;];
+GRMustacheTemplateRepository </em>repository = [GRMustacheTemplateRepository templateRepositoryWithBaseURL:baseURL
+templateExtension:@&ldquo;txt&rdquo;];</p>
-// Returns a template for the file stored in
+<p>// Returns a template for the file stored in
// /path/to/templates/profile.txt
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>A partial tag <code>{{&gt;partial}}</code> loads a partial template stored in a file named
<code>partial.txt</code>, located in the enclosing template&rsquo;s directory.</p>
@@ -685,10 +679,9 @@ <h4 class="method-subtitle">Discussion</h4>
<p>When you ask the repository to parse a raw template string, partials are
loaded from the base URL:</p>
-<pre><code>// The partial would be loaded from
+<p>// The partial would be loaded from
// /path/to/templates/partials/achievements.txt
-GRMustacheTemplate *template = [repository templateFromString:@"{{&gt;partials/achievements}}" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateFromString:@&ldquo;{{>partials/achievements}}&rdquo; error:NULL];</p>
</div>
@@ -763,17 +756,16 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates of extension `.txt` stored in
+<p>// Creates a repository for templates of extension <code>.txt</code> stored in
// /path/to/templates, encoded with NSMacOSRomanStringEncoding:
-NSURL *baseURL = [NSURL fileURLWithPath:@"/path/to/templates"];
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithBaseURL:baseURL
- templateExtension:@"txt"
- encoding:NSMacOSRomanStringEncoding];
+NSURL <em>baseURL = [NSURL fileURLWithPath:@&ldquo;/path/to/templates&rdquo;];
+GRMustacheTemplateRepository </em>repository = [GRMustacheTemplateRepository templateRepositoryWithBaseURL:baseURL
+templateExtension:@&ldquo;txt&rdquo;
+encoding:NSMacOSRomanStringEncoding];</p>
-// Returns a template for the file stored in
+<p>// Returns a template for the file stored in
// /path/to/templates/profile.txt
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>A partial tag <code>{{&gt;partial}}</code> loads a partial template stored in a file named
<code>partial.txt</code>, located in the enclosing template&rsquo;s directory.</p>
@@ -786,10 +778,9 @@ <h4 class="method-subtitle">Discussion</h4>
<p>When you ask the repository to parse a raw template string, partials are
loaded from the base URL:</p>
-<pre><code>// The partial would be loaded from
+<p>// The partial would be loaded from
// /path/to/templates/partials/achievements.txt
-GRMustacheTemplate *template = [repository templateFromString:@"{{&gt;partials/achievements}}" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateFromString:@&ldquo;{{>partials/achievements}}&rdquo; error:NULL];</p>
</div>
@@ -854,12 +845,11 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates stored in the main bundle:
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithBundle:[NSBundle mainBundle]];
+<p>// Creates a repository for templates stored in the main bundle:
+GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithBundle:[NSBundle mainBundle]];</p>
-// Returns a template for the resource profile.mustache
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<p>// Returns a template for the resource profile.mustache
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>You may provide nil for the bundle parameter: the repository will use the
main bundle.</p>
@@ -935,14 +925,13 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates of extension `.txt` stored in the
+<p>// Creates a repository for templates of extension <code>.txt</code> stored in the
// main bundle:
GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithBundle:[NSBundle mainBundle]
- templateExtension:@"txt"];
+templateExtension:@&ldquo;txt&rdquo;];</p>
-// Returns a template for the resource profile.txt
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<p>// Returns a template for the resource profile.txt
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>You may provide nil for the bundle parameter: the repository will use the
main bundle.</p>
@@ -1023,15 +1012,14 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates of extension `.txt` stored in the
+<p>// Creates a repository for templates of extension <code>.txt</code> stored in the
// main bundle, encoded with NSMacOSRomanStringEncoding:
GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithBundle:[NSBundle mainBundle]
- templateExtension:@"txt"
- encoding:NSMacOSRomanStringEncoding];
+templateExtension:@&ldquo;txt&rdquo;
+encoding:NSMacOSRomanStringEncoding];</p>
-// Returns a template for the resource profile.txt
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<p>// Returns a template for the resource profile.txt
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>You may provide nil for the bundle parameter: the repository will use the
main bundle.</p>
@@ -1102,13 +1090,12 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates stored in /path/to/templates
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithDirectory:@"/path/to/templates"];
+<p>// Creates a repository for templates stored in /path/to/templates
+GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithDirectory:@&ldquo;/path/to/templates&rdquo;];</p>
-// Returns a template for the file stored in
+<p>// Returns a template for the file stored in
// /path/to/templates/profile.mustache
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>A partial tag <code>{{&gt;partial}}</code> loads a partial template stored in a file named
<code>partial.mustache</code>, located in the enclosing template&rsquo;s directory.</p>
@@ -1121,10 +1108,9 @@ <h4 class="method-subtitle">Discussion</h4>
<p>When you ask the repository to parse a raw template string, partials are
loaded from the base directory:</p>
-<pre><code>// The partial would be loaded from
+<p>// The partial would be loaded from
// /path/to/templates/partials/achievements.mustache
-GRMustacheTemplate *template = [repository templateFromString:@"{{&gt;partials/achievements}}" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateFromString:@&ldquo;{{>partials/achievements}}&rdquo; error:NULL];</p>
</div>
@@ -1194,15 +1180,14 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates of extension `.txt` stored in
+<p>// Creates a repository for templates of extension <code>.txt</code> stored in
// /path/to/templates
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithDirectory:@"/path/to/templates"
- templateExtension:@"txt"];
+GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithDirectory:@&ldquo;/path/to/templates&rdquo;
+templateExtension:@&ldquo;txt&rdquo;];</p>
-// Returns a template for the file stored in
+<p>// Returns a template for the file stored in
// /path/to/templates/profile.txt
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>A partial tag <code>{{&gt;partial}}</code> loads a partial template stored in a file named
<code>partial.txt</code>, located in the enclosing template&rsquo;s directory.</p>
@@ -1215,10 +1200,9 @@ <h4 class="method-subtitle">Discussion</h4>
<p>When you ask the repository to parse a raw template string, partials are
loaded from the base directory:</p>
-<pre><code>// The partial would be loaded from
+<p>// The partial would be loaded from
// /path/to/templates/partials/achievements.txt
-GRMustacheTemplate *template = [repository templateFromString:@"{{&gt;partials/achievements}}" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateFromString:@&ldquo;{{>partials/achievements}}&rdquo; error:NULL];</p>
</div>
@@ -1293,16 +1277,15 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>// Creates a repository for templates of extension `.txt` stored in
+<p>// Creates a repository for templates of extension <code>.txt</code> stored in
// /path/to/templates, encoded with NSMacOSRomanStringEncoding:
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithDirectory:@"/path/to/templates"
- templateExtension:@"txt"
- encoding:NSMacOSRomanStringEncoding];
+GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithDirectory:@&ldquo;/path/to/templates&rdquo;
+templateExtension:@&ldquo;txt&rdquo;
+encoding:NSMacOSRomanStringEncoding];</p>
-// Returns a template for the file stored in
+<p>// Returns a template for the file stored in
// /path/to/templates/profile.txt
-GRMustacheTemplate *template = [repository templateForName:@"profile" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateForName:@&ldquo;profile&rdquo; error:NULL];</p>
<p>A partial tag <code>{{&gt;partial}}</code> loads a partial template stored in a file named
<code>partial.txt</code>, located in the enclosing template&rsquo;s directory.</p>
@@ -1315,10 +1298,9 @@ <h4 class="method-subtitle">Discussion</h4>
<p>When you ask the repository to parse a raw template string, partials are
loaded from the base directory:</p>
-<pre><code>// The partial would be loaded from
+<p>// The partial would be loaded from
// /path/to/templates/partials/achievements.txt
-GRMustacheTemplate *template = [repository templateFromString:@"{{&gt;partials/achievements}}" error:NULL];
-</code></pre>
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> *template = [repository templateFromString:@&ldquo;{{>partials/achievements}}&rdquo; error:NULL];</p>
</div>
@@ -1357,10 +1339,8 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>partialsDictionary</em></dt>
- <dd><p>A dictionary of whose keys are template names, and</p>
-
-<pre><code> values Mustache template strings.
-</code></pre></dd>
+ <dd><p>A dictionary of whose keys are template names, and
+values Mustache template strings.</p></dd>
</dl>
</div>
@@ -1385,13 +1365,12 @@ <h4 class="method-subtitle parameter-title">Availability</h4>
<h4 class="method-subtitle">Discussion</h4>
<p>For instance:</p>
-<pre><code>NSDictionary *partialsDictionary = [NSDictionary dictionaryWithObject:@"It works." forKey:@"partial"];
-GRMustacheTemplateRepository *repository = [GRMustacheTemplateRepository templateRepositoryWithPartialsDictionary:partialsDictionary];
+<p>NSDictionary <em>partialsDictionary = [NSDictionary dictionaryWithObject:@&ldquo;It works.&rdquo; forKey:@&ldquo;partial&rdquo;];
+GRMustacheTemplateRepository </em>repository = [GRMustacheTemplateRepository templateRepositoryWithPartialsDictionary:partialsDictionary];</p>
-// Two templates that would render "It works."
-GRMustacheTemplate *template1 = [repository templateForName:@"partial" error:NULL];
-GRMustacheTemplate *template2 = [repository templateFromString:@"{{&gt;partial}}" error:NULL];
-</code></pre>
+<p>// Two templates that would render &ldquo;It works.&rdquo;
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> <em>template1 = [repository templateForName:@&ldquo;partial&rdquo; error:NULL];
+<a href="../Classes/GRMustacheTemplate.html">GRMustacheTemplate</a> </em>template2 = [repository templateFromString:@&ldquo;{{>partial}}&rdquo; error:NULL];</p>
</div>
@@ -1442,11 +1421,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1514,11 +1491,9 @@ <h4 class="method-subtitle parameter-title">Parameters</h4>
<dl class="argument-def parameter-def">
<dt><em>outError</em></dt>
- <dd><p>If there is an error loading or parsing template and</p>
-
-<pre><code> partials, upon return contains an NSError object that
- describes the problem.
-</code></pre></dd>
+ <dd><p>If there is an error loading or parsing template and
+partials, upon return contains an NSError object that
+describes the problem.</p></dd>
</dl>
</div>
@@ -1573,9 +1548,9 @@ <h4 class="method-subtitle">Declared In</h4>
<div id="footer">
<hr />
<div class="footer-copyright">
- <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-08-04)</span><br />
+ <p><span class="copyright">&copy; 2012 Gwendal Roué. All rights reserved. (Last updated: 2012-09-22)</span><br />
- <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.5 (build 789)</a>.</span></p>
+ <span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.0.6 (build 789)</a>.</span></p>
</div>
</div>
View
412 Reference/html/Classes/GRMustacheVariable.html
@@ -0,0 +1,412 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
+ <title>GRMustacheVariable Class Reference</title>
+ <meta id="xcode-display" name="xcode-display" content="render"/>
+ <meta name="viewport" content="width=550" />
+ <link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
+ <link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
+ <meta name="generator" content="appledoc 2.0.6 (build 789)" />
+ </head>
+ <body>
+ <header id="top_header">
+ <div id="library" class="hideInXcode">
+ <h1><a id="libraryTitle" href="../index.html">GRMustache 5.1 </a></h1>
+ <a id="developerHome" href="../index.html">Gwendal Roué</a>
+ </div>
+
+ <div id="title" role="banner">
+ <h1 class="hideInXcode">GRMustacheVariable Class Reference</h1>
+ </div>
+ <ul id="headerButtons" role="toolbar">
+ <li id="toc_button">
+ <button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
+ </li>
+ <li id="jumpto_button" role="navigation">
+ <select id="jumpTo">
+ <option value="top">Jump To&#133;</option>
+
+ <option value="overview">Overview</option>
+
+
+
+
+ <option value="tasks">Tasks</option>
+
+
+
+
+
+
+
+
+
+ <option value="instance_methods">Instance Methods</option>
+
+ <option value="//api/name/renderTemplateNamed:error:">&nbsp;&nbsp;&nbsp;&nbsp;- renderTemplateNamed:error:</option>
+
+ <option value="//api/name/renderTemplateString:error:">&nbsp;&nbsp;&nbsp;&nbsp;- renderTemplateString:error:</option>
+
+
+
+</select>
+ </li>
+ </ul>
+ </header>
+ <nav id="tocContainer" class="isShowingTOC">
+ <ul id="toc" role="tree">
+
+<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
+
+
+
+
+<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
+
+</ul></li>
+
+
+
+
+
+
+
+
+
+<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/renderTemplateNamed:error:">renderTemplateNamed:error:</a></span></li>
+
+ <li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/renderTemplateString:error:">renderTemplateString:error:</a></span></li>
+
+</ul></li>
+
+
+ </ul>
+ </nav>
+ <article>
+ <div id="contents" class="isShowingTOC" role="main">
+ <a title="GRMustacheVariable Class Reference" name="top"></a>
+ <div class="main-navigation navigation-top">
+ <ul>
+ <li><a href="../index.html">Index</a></li>
+ <li><a href="../hierarchy.html">Hierarchy</a></li>
+</ul>
+ </div>
+ <div id="header">
+ <div class="section-header">
+ <h1 class="title title-header">GRMustacheVariable Class Reference</h1>
+ </div>
+ </div>
+ <div id="container">
+
+ <div class="section section-specification"><table cellspacing="0"><tbody>
+ <tr>
+ <td class="specification-title">Inherits from</td>
+ <td class="specification-value">NSObject</td>
+</tr><tr>
+ <td class="specification-title"