Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

docs update.

  • Loading branch information...
commit 191e97d989d89ea1477e21420dba68f79bc1b49c 1 parent 772d854
@andrzejsliwa authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 docs/coffeeapp.html
View
5 docs/coffeeapp.html
@@ -75,7 +75,7 @@
<span class="s1">&#39;&#39;&#39;</span></pre></div> </td> </tr> <tr id="section-10"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-10">#</a> </div> <p>filter function</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">filterCoffee</span> <span class="o">=</span> <span class="s1">&#39;&#39;&#39;</span>
<span class="s1">(doc, req) -&gt;</span>
<span class="s1"> ...</span>
-<span class="s1">&#39;&#39;&#39;</span></pre></div> </td> </tr> <tr id="section-11"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-11">#</a> </div> <h3>Helper Methods</h3> </td> <td class="code"> <div class="highlight"><pre><span class="nx">showGreatings</span> <span class="o">=</span> <span class="o">-&gt;</span></pre></div> </td> </tr> <tr id="section-12"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-12">#</a> </div> <p>Shows greatings ...</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">log</span> <span class="s1">&#39;CoffeeApp (v1.0.4) - simple coffee-script wrapper for CouchApp (http://couchapp.org)&#39;</span>
+<span class="s1">&#39;&#39;&#39;</span></pre></div> </td> </tr> <tr id="section-11"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-11">#</a> </div> <h3>Helper Methods</h3> </td> <td class="code"> <div class="highlight"><pre><span class="nx">showGreatings</span> <span class="o">=</span> <span class="o">-&gt;</span></pre></div> </td> </tr> <tr id="section-12"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-12">#</a> </div> <p>Shows greatings ...</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">log</span> <span class="s1">&#39;CoffeeApp (v1.0.5) - simple coffee-script wrapper for CouchApp (http://couchapp.org)&#39;</span>
<span class="nx">log</span> <span class="s1">&#39;http://github.com/andrzejsliwa/coffeeapp\n&#39;</span></pre></div> </td> </tr> <tr id="section-13"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-13">#</a> </div> <p>Zero padding for format '0x'</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">padTwo</span> <span class="o">=</span> <span class="p">(</span><span class="nx">number</span><span class="p">)</span> <span class="o">-&gt;</span>
<span class="nx">result</span> <span class="o">=</span> <span class="k">if</span> <span class="nx">number</span> <span class="o">&lt;</span> <span class="mi">10</span> <span class="k">then</span> <span class="s1">&#39;0&#39;</span> <span class="k">else</span> <span class="s1">&#39;&#39;</span>
<span class="s2">&quot;#{result}#{number}&quot;</span></pre></div> </td> </tr> <tr id="section-14"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-14">#</a> </div> <p>Timestamp string based on current date</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">getTimestamp</span> <span class="o">=</span> <span class="o">-&gt;</span>
@@ -98,7 +98,7 @@
<span class="nx">unless</span> <span class="nx">fileName</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="s1">&#39;.&#39;</span>
<span class="nx">mkdirSync</span> <span class="nx">destFilePath</span><span class="p">,</span> <span class="mi">0700</span>
<span class="nx">isError</span> <span class="o">=</span> <span class="kc">true</span> <span class="nx">unless</span> <span class="nx">processRecursive</span> <span class="nx">filePath</span><span class="p">,</span> <span class="nx">destination</span>
- <span class="k">else</span></pre></div> </td> </tr> <tr id="section-18"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-18">#</a> </div> <p>if it's coffee-script file and isn't in _attachments (to using it on client side.)</p> </td> <td class="code"> <div class="highlight"><pre> <span class="k">if</span> <span class="nx">extname</span><span class="p">(</span><span class="nx">filePath</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;.coffee&#39;</span> <span class="o">and</span> <span class="nx">filePath</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="s1">&#39;_attachments&#39;</span><span class="p">)</span> <span class="o">==</span> <span class="o">-</span><span class="mi">1</span>
+ <span class="k">else</span></pre></div> </td> </tr> <tr id="section-18"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-18">#</a> </div> <p>if it's coffee-script file</p> </td> <td class="code"> <div class="highlight"><pre> <span class="k">if</span> <span class="nx">extname</span><span class="p">(</span><span class="nx">filePath</span><span class="p">)</span> <span class="o">==</span> <span class="s1">&#39;.coffee&#39;</span>
<span class="nx">log</span> <span class="s2">&quot; * processing #{filePath}...&quot;</span>
<span class="k">try</span>
<span class="nx">writeFileSync</span> <span class="nx">destFilePath</span><span class="p">.</span><span class="nx">replace</span><span class="p">(</span><span class="sr">/\.coffee$/</span><span class="p">,</span> <span class="s1">&#39;.js&#39;</span><span class="p">),</span>
@@ -206,6 +206,7 @@
<span class="nx">handleList</span> <span class="o">=</span> <span class="p">(</span><span class="nx">method</span><span class="p">,</span> <span class="nx">name</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nx">handleFile</span><span class="p">(</span><span class="nx">method</span><span class="p">,</span> <span class="s1">&#39;lists&#39;</span><span class="p">,</span> <span class="nx">listCoffee</span><span class="p">,</span> <span class="nx">name</span><span class="p">)</span>
<span class="nx">handleFilter</span> <span class="o">=</span> <span class="p">(</span><span class="nx">method</span><span class="p">,</span> <span class="nx">name</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nx">handleFile</span><span class="p">(</span><span class="nx">method</span><span class="p">,</span> <span class="s1">&#39;filters&#39;</span><span class="p">,</span> <span class="nx">filterCoffee</span><span class="p">,</span> <span class="nx">name</span><span class="p">)</span></pre></div> </td> </tr> <tr id="section-29"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-29">#</a> </div> <p>make clean up</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">clean</span> <span class="o">=</span> <span class="o">-&gt;</span>
<span class="nx">log</span> <span class="s2">&quot;cleaning up:&quot;</span>
+ <span class="nx">log</span> <span class="s2">&quot; * remove &#39;.releases&#39; ...&quot;</span>
<span class="nx">exec</span> <span class="s1">&#39;rm -r .releases&#39;</span>
<span class="nx">log</span> <span class="s2">&quot;done.&quot;</span></pre></div> </td> </tr> <tr id="section-30"> <td class="docs"> <div class="octowrap"> <a class="octothorpe" href="#section-30">#</a> </div> <p>prepare project</p> </td> <td class="code"> <div class="highlight"><pre><span class="nx">prepare</span> <span class="o">=</span> <span class="o">-&gt;</span>
<span class="nx">log</span> <span class="s2">&quot;preparing project:&quot;</span>
Please sign in to comment.
Something went wrong with that request. Please try again.