https://github.com/assemble/assemble-swig
Assemble engine plugin for swig templates.
https://github.com/assemble/assemble-swig
Last synced: about 1 year ago
JSON representation
Assemble engine plugin for swig templates.
- Host: GitHub
- URL: https://github.com/assemble/assemble-swig
- Owner: assemble
- License: mit
- Created: 2013-05-08T02:11:34.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-09-14T07:57:47.000Z (over 12 years ago)
- Last Synced: 2025-03-23T00:02:16.092Z (about 1 year ago)
- Language: JavaScript
- Size: 134 KB
- Stars: 10
- Watchers: 11
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# assemble-swig [](http://badge.fury.io/js/assemble-swig) [](https://travis-ci.org/assemble/assemble-swig)
> Assemble engine plugin for processing swig templates.
## Getting Started
```shell
npm install assemble-swig --save-dev
```
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
```js
grunt.loadNpmTasks('assemble-swig');
```
## The "assemble" task
_Run this task with the `grunt assemble` command._
### Overview
In your project's Gruntfile, add a section named `assemble` to the data object passed into `grunt.initConfig()`.
#### Usage Example
```js
grunt.initConfig({
assemble: {
options: {
engine: 'swig',
swig: {
varControls: ["<%=", "%>"]
}
},
site: {
files: {
'_gh_pages/': ['src/templates/**/*.swig']
}
}
}
});
```
### Options
#### [options.engine](http://assemble.io/docs/options-engine.html)
Type: `String`
Specify `swig` as the current engine for processing templates:
```js
assemble: {
options: {
engine: 'swig'
}
}
```
## Related projects
* [sublime-swig](https://github.com/jonschlinkert/sublime-swig) syntax highlight for Swig Templates, in Sublime Text.
* [sublime-monokai-extended](https://github.com/jonschlinkert/sublime-monokai-extended)
* [sublime-markdown-extended](https://github.com/jonschlinkert/sublime-markdown-extended)
* [assemble](http://github.com/assemble) (see the [live docs](http://assemble.io))
* [assemble-swig](http://github.com/assemble/assemble-swig)
* [assemble-swig-examples](http://github.com/assemble/assemble-swig-examples)
## Release History
* 2013-08-07 v0.1.0 New Assemble engine plugin for swig templates.
***
Project authored by [Brian Woodward](https://github.com/doowb/).
_This file was generated on Wed Sep 11 2013 22:50:17._