Skip to content
Myr

Added Guillermo Rauch to the contributor list

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent ce23e5f · Browse files · 5 files+46 added−40 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+46 added−40 removed

  • other:+46 added−40 removed

5 files+46 added−40 removed

modified:docs/api.html+40 added-40 removed
335 unmodified lines
336<td class="code">337<pre><code><span class="variable">http</span>.<span class="class">IncomingMessage</span>.<span class="variable">prototype</span>.<span class="variable">__defineGetter__</span>(<span class="string">'isXMLHttpRequest'</span>, <span class="variable">isxhr</span>);338<span class="variable">http</span>.<span class="class">IncomingMessage</span>.<span class="variable">prototype</span>.<span class="variable">__defineGetter__</span>(<span class="string">'xhr'</span>, <span class="variable">isxhr</span>);</code></pre>339</td>340</tr><tr class="filename"><td><h2 id="lib/express/utils.js"><a href="#">utils</a></h2></td><td>lib/express/utils.js</td></tr><tr class="code">341<td class="docs">342<p>Parse mini markdown implementation.343The following conversions are supported,344primarily for the "flash" middleware:</p>345346<p> <em>foo</em> or <em>foo</em> become &lt;em&gt;foo&lt;/em&gt;347 <strong>foo</strong> or <strong>foo</strong> become &lt;strong&gt;foo&lt;/strong&gt;348 <a href="B">A</a> becomes &lt;a href="B"&gt;A&lt;/a&gt;</p>349350<h2></h2>351352<ul><li><p><strong>param</strong>: <em>String</em> str</p></li><li><p><strong>return</strong>: <em>String</em> </p></li><li><p><strong>api</strong>: <em>public</em></p></li></ul>353</td>354<td class="code">355<pre><code><span class="variable">exports</span>.<span class="variable">miniMarkdown</span> = <span class="keyword">function</span>(<span class="variable">str</span>){356 <span class="keyword">return</span> <span class="class">String</span>(<span class="variable">str</span>)357 .<span class="variable">replace</span>(<span class="regexp">/(__|\*\*)(.*?)\1/g</span>, <span class="string">'&lt;strong&gt;$2&lt;/strong&gt;'</span>)358 .<span class="variable">replace</span>(<span class="regexp">/(_|\*)(.*?)\1/g</span>, <span class="string">'&lt;em&gt;$2&lt;/em&gt;'</span>)359 .<span class="variable">replace</span>(<span class="regexp">/\[([^\]]+)\]\(([^)]+)\)/g</span>, <span class="string">'&lt;a href=&quot;$2&quot;&gt;$1&lt;/a&gt;'</span>);360};</code></pre>361</td>362</tr>363<tr class="code">364<td class="docs">365<p>Escape special characters in the given string of html.</p>366367<h2></h2>368369<ul><li><p><strong>param</strong>: <em>String</em> html</p></li><li><p><strong>return</strong>: <em>String</em> </p></li><li><p><strong>api</strong>: <em>public</em></p></li></ul>370</td>371<td class="code">372<pre><code><span class="variable">exports</span>.<span class="variable">htmlEscape</span> = <span class="keyword">function</span>(<span class="variable">html</span>) {373 <span class="keyword">return</span> <span class="class">String</span>(<span class="variable">html</span>)374 .<span class="variable">replace</span>(<span class="regexp">/&amp;/g</span>, <span class="string">'&amp;'</span>)375 .<span class="variable">replace</span>(<span class="regexp">/&quot;/g</span>, <span class="string">'&quot;'</span>)376 .<span class="variable">replace</span>(<span class="regexp">/&lt;/g</span>, <span class="string">'&lt;'</span>)377 .<span class="variable">replace</span>(<span class="regexp">/&gt;/g</span>, <span class="string">'&gt;'</span>);378};</code></pre>379</td>380</tr><tr class="filename"><td><h2 id="lib/express/response.js"><a href="#">response</a></h2></td><td>lib/express/response.js</td></tr><tr class="code">381<td class="docs">382<p>Module dependencies.383 </p>
462 unmodified lines
846 <span class="keyword">return</span> <span class="variable">arguments</span>.<span class="variable">callee</span>;847})(<span class="string">'get'</span>)(<span class="string">'post'</span>)(<span class="string">'put'</span>)(<span class="string">'del'</span>);848</code></pre>849</td>810</tr><tr class="filename"><td><h2 id="lib/express/utils.js"><a href="#">utils</a></h2></td><td>lib/express/utils.js</td></tr><tr class="code">811<td class="docs">812<p>Parse mini markdown implementation.813The following conversions are supported,814primarily for the "flash" middleware:</p>815816<p> <em>foo</em> or <em>foo</em> become &lt;em&gt;foo&lt;/em&gt;817 <strong>foo</strong> or <strong>foo</strong> become &lt;strong&gt;foo&lt;/strong&gt;818 <a href="B">A</a> becomes &lt;a href="B"&gt;A&lt;/a&gt;</p>819820<h2></h2>821822<ul><li><p><strong>param</strong>: <em>String</em> str</p></li><li><p><strong>return</strong>: <em>String</em> </p></li><li><p><strong>api</strong>: <em>public</em></p></li></ul>823</td>824<td class="code">825<pre><code><span class="variable">exports</span>.<span class="variable">miniMarkdown</span> = <span class="keyword">function</span>(<span class="variable">str</span>){826 <span class="keyword">return</span> <span class="class">String</span>(<span class="variable">str</span>)827 .<span class="variable">replace</span>(<span class="regexp">/(__|\*\*)(.*?)\1/g</span>, <span class="string">'&lt;strong&gt;$2&lt;/strong&gt;'</span>)828 .<span class="variable">replace</span>(<span class="regexp">/(_|\*)(.*?)\1/g</span>, <span class="string">'&lt;em&gt;$2&lt;/em&gt;'</span>)829 .<span class="variable">replace</span>(<span class="regexp">/\[([^\]]+)\]\(([^)]+)\)/g</span>, <span class="string">'&lt;a href=&quot;$2&quot;&gt;$1&lt;/a&gt;'</span>);830};</code></pre>831</td>832</tr>833<tr class="code">834<td class="docs">835<p>Escape special characters in the given string of html.</p>836837<h2></h2>838839<ul><li><p><strong>param</strong>: <em>String</em> html</p></li><li><p><strong>return</strong>: <em>String</em> </p></li><li><p><strong>api</strong>: <em>public</em></p></li></ul>840</td>841<td class="code">842<pre><code><span class="variable">exports</span>.<span class="variable">htmlEscape</span> = <span class="keyword">function</span>(<span class="variable">html</span>) {843 <span class="keyword">return</span> <span class="class">String</span>(<span class="variable">html</span>)844 .<span class="variable">replace</span>(<span class="regexp">/&amp;/g</span>, <span class="string">'&amp;'</span>)845 .<span class="variable">replace</span>(<span class="regexp">/&quot;/g</span>, <span class="string">'&quot;'</span>)846 .<span class="variable">replace</span>(<span class="regexp">/&lt;/g</span>, <span class="string">'&lt;'</span>)847 .<span class="variable">replace</span>(<span class="regexp">/&gt;/g</span>, <span class="string">'&gt;'</span>);848};</code></pre>849</td>850</tr><tr class="filename"><td><h2 id="lib/express/view.js"><a href="#">view</a></h2></td><td>lib/express/view.js</td></tr><tr class="code">851<td class="docs">852<p>Module dependencies.853 </p>
238 unmodified lines
modified:docs/index.1+3 added
63 unmodified lines
64.65.IP "\(bu" 466Aaron Heckmann (aheckmann \fIhttp://github\.com/aheckmann\fR)67.68.IP "\(bu" 469Guillermo Rauch (guille \fIhttp://github\.com/guille\fR)70.71.IP "" 072.73.SH "More Information"74.
23 unmodified lines
modified:docs/index.html+1 added
222 unmodified lines
223<ul>224<li>TJ Holowaychuk (<a href="http://github.com/visionmedia">visionmedia</a>)</li>225<li>Ciaran Jessup (<a href="http://github.com/ciaranj">ciaranj</a>)</li>226<li>Aaron Heckmann (<a href="http://github.com/aheckmann">aheckmann</a>)</li>227<li>Guillermo Rauch (<a href="http://github.com/guille">guille</a>)</li>228</ul>229230231<h2 id="More-Information">More Information</h2>
17 unmodified lines
modified:docs/index.md+1 added
modified:Readme.md+1 added