Skip to content

Commit

Permalink
Fix typo, clean up awkward sentence
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Heaslip committed Jul 6, 2011
1 parent 07033e6 commit 4273080
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion book.html
Expand Up @@ -287,7 +287,7 @@ <h2 id="Registering-Module-Compilers">Registering Module Compilers</h2>
};
</code></pre>

<p>Next we have to "register" the extension to assign out compiler. As previously mentioned our compiler lives at <em>./compiler/extended.js</em> so we are requiring it in, and passing the <code>compile()</code> method to <code>require.registerExtension()</code> which simply expects a function accepting a string, and returning a string of JavaScript.</p>
<p>Next we have to "register" the extension to assign our compiler. As previously mentioned, our compiler lives at <em>./compiler/extended.js</em>; so we are requiring it, passing the <code>compile()</code> method to <code>require.registerExtension()</code> (which simply expects a function accepting a string), and returning a string of JavaScript.</p>

<pre><code>require.registerExtension('.ejs', require('./compiler/extended').compile);
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion chapters/modules.html
Expand Up @@ -187,7 +187,7 @@ <h2 id="Registering-Module-Compilers">Registering Module Compilers</h2>
};
</code></pre>

<p>Next we have to "register" the extension to assign out compiler. As previously mentioned our compiler lives at <em>./compiler/extended.js</em> so we are requiring it in, and passing the <code>compile()</code> method to <code>require.registerExtension()</code> which simply expects a function accepting a string, and returning a string of JavaScript.</p>
<p>Next we have to "register" the extension to assign our compiler. As previously mentioned, our compiler lives at <em>./compiler/extended.js</em>; so we are requiring it, passing the <code>compile()</code> method to <code>require.registerExtension()</code> (which simply expects a function accepting a string), and returning a string of JavaScript.</p>

<pre><code>require.registerExtension('.ejs', require('./compiler/extended').compile);
</code></pre>
Expand Down
2 changes: 1 addition & 1 deletion chapters/modules.md
Expand Up @@ -164,7 +164,7 @@ First let's create the module that will actually be doing the ejs to JavaScript
.replace(/::/g, 'exports.');
};

Next we have to "register" the extension to assign out compiler. As previously mentioned our compiler lives at _./compiler/extended.js_ so we are requiring it in, and passing the `compile()` method to `require.registerExtension()` which simply expects a function accepting a string, and returning a string of JavaScript.
Next we have to "register" the extension to assign our compiler. As previously mentioned, our compiler lives at _./compiler/extended.js_; so we are requiring it, passing the `compile()` method to `require.registerExtension()` (which simply expects a function accepting a string), and returning a string of JavaScript.

require.registerExtension('.ejs', require('./compiler/extended').compile);

Expand Down

0 comments on commit 4273080

Please sign in to comment.