Permalink
Browse files

Fixed some documentation

Closes #77
  • Loading branch information...
1 parent a52ae2b commit e2cfa13d65a3a369bb2dae095292a754a0fbb6b2 @paularmstrong committed Oct 20, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 docs/browser.md
  2. +1 −1 docs/filters.md
View
4 docs/browser.md
@@ -18,9 +18,9 @@ You should only need one of these. If you already include _underscore.js_ in you
Swig's API in the browser is the same as [its API for node.js](getting-started.md), with the only difference being that you cannot use the `swig.compileFile` method, since browsers do not have a filesystem.
-Instead, you must always use `swig.fromString` and pre-parse all templates.
+Instead, you must always use `swig.compile` and pre-parse all templates.
-In order to use `extends`, `import`, and `include` correctly, another argument is available on `swig.fromString`: `templateKey`
+In order to use `extends`, `import`, and `include` correctly, another argument is available on `swig.compile`: `templateKey`
swig.compile(templateString, { filename: templateKey });
View
2 docs/filters.md
@@ -10,7 +10,7 @@ Example
Filters can also be applied to blocks of content directly with the [filter tag](tags.md#filter).
- {% filter uppercase %}oh hi, paul{% endfilter %}
+ {% filter upper %}oh hi, paul{% endfilter %}
Built-In Filters <a name="built-in" href="#built-in">#</a>\
----------------

0 comments on commit e2cfa13

Please sign in to comment.