Skip to content
Browse files

Fixed indentation.

  • Loading branch information...
1 parent 30ac37f commit 16dafaa197e49e577bb5d8d557ff2ecbeed7b099 @mauricemach committed Sep 19, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 docs/coffeekup.html
  2. +1 −1 src/coffeekup.coffee
View
2 docs/coffeekup.html
@@ -271,7 +271,7 @@
<span class="nv">compile: </span><span class="nf">(template, data) -&gt;</span> </pre></div> </td> </tr> <tr id="section-32"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-32">&#182;</a> </div> <p>Allows <code>partial 'foo'</code> instead of <code>text @partial 'foo'</code>.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">data</span><span class="p">.</span><span class="nx">hardcode</span> <span class="o">?=</span> <span class="p">{}</span>
<span class="nv">data.hardcode.partial = </span><span class="o">-&gt;</span>
- <span class="nx">text</span> <span class="nx">@partial</span><span class="p">.</span><span class="nx">apply</span> <span class="err">@</span><span class="p">,</span> <span class="nx">arguments</span>
+ <span class="nx">text</span> <span class="nx">@partial</span><span class="p">.</span><span class="nx">apply</span> <span class="err">@</span><span class="p">,</span> <span class="nx">arguments</span>
<span class="nv">TemplateError = </span><span class="nx">@TemplateError</span>
<span class="k">try</span> <span class="nv">tpl = </span><span class="nx">coffeekup</span><span class="p">.</span><span class="nx">compile</span><span class="p">(</span><span class="nx">template</span><span class="p">,</span> <span class="nx">data</span><span class="p">)</span>
View
2 src/coffeekup.coffee
@@ -353,7 +353,7 @@ unless window?
# Allows `partial 'foo'` instead of `text @partial 'foo'`.
data.hardcode ?= {}
data.hardcode.partial = ->
- text @partial.apply @, arguments
+ text @partial.apply @, arguments
TemplateError = @TemplateError
try tpl = coffeekup.compile(template, data)

0 comments on commit 16dafaa

Please sign in to comment.
Something went wrong with that request. Please try again.