Skip to content

Commit

Permalink
Merge pull request paularmstrong#79 from Anks/patch-1
Browse files Browse the repository at this point in the history
Update docs/gettings-started.md to mention the `cache` config param
  • Loading branch information
paularmstrong committed May 12, 2012
2 parents 888c752 + a57da5e commit 09283b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/getting-started.md
Expand Up @@ -9,6 +9,7 @@ In order to start using Swig, you should initialize it. Swig can be configured u
swig.init({
allowErrors: false,
autoescape: true,
cache: true,
encoding: 'utf8',
filters: {},
root: '/',
Expand Down Expand Up @@ -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](filters.md#escape).

#### 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`.
Expand Down

0 comments on commit 09283b6

Please sign in to comment.