Browse files

Merge pull request #79 from Anks/patch-1

Update docs/ to mention the `cache` config param
  • Loading branch information...
2 parents 888c752 + a57da5e commit 09283b658cfabcdc3b41557f94f331736b14c995 @paularmstrong committed May 12, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/
5 docs/
@@ -9,6 +9,7 @@ In order to start using Swig, you should initialize it. Swig can be configured u
allowErrors: false,
autoescape: true,
+ cache: true,
encoding: 'utf8',
filters: {},
root: '/',
@@ -37,6 +38,10 @@ Automatically escape all variable output. This is the default behavior and it is
For character conversion tables, see the [escape filter](
+#### cache _optional_
+Default is `true`. Keeping this off will re-compile the template files for each request. Not recommended in production.
#### encoding _optional_
The character encoding for template files. Defaults to `utf8`.

0 comments on commit 09283b6

Please sign in to comment.