Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Add option to initialise swig #8

Closed
thomas-lebeau opened this issue May 14, 2013 · 1 comment
Closed

Add option to initialise swig #8

thomas-lebeau opened this issue May 14, 2013 · 1 comment
Assignees
Milestone

Comments

@thomas-lebeau
Copy link
Contributor

Add a section init to be passed to swig.init(). İncluding root and we can add some (all?) other options for initialising swig. (At the same time it will be more clear, as root can be mistaken to src prefix path).

So we will have something like this:

swig: {
  dist: {
    cwd: 'source',
    dest: 'www/',
    src: ['**/*.swig'],
    init: {
      root: 'source/',
      allowErrors: false,
      autoescape: true,
      cache: true,
      encoding: 'utf8',
      filters: {},
      tags: {},
      extensions: {},
      tzOffset: 0
    }
    siteUrl: 'http://localhost:9000'
  }
}
@ghost ghost assigned nickpack May 14, 2013
@nickpack
Copy link
Collaborator

I just pushed 0.0.11 to npm, which contains this feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants