Permalink
Browse files

Fix typo, clean up awkward sentence

  • Loading branch information...
1 parent 07033e6 commit 4273080e2147f1681b4e57b674284f08185aadcc Grant Heaslip committed Jul 6, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 book.html
  2. +1 −1 chapters/modules.html
  3. +1 −1 chapters/modules.md
View
@@ -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>
View
@@ -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>
View
@@ -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);

0 comments on commit 4273080

Please sign in to comment.