Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/titarenko/gulp-dot-template
https://github.com/titarenko/gulp-dot-template
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/titarenko/gulp-dot-template
- Owner: titarenko
- Created: 2016-02-14T23:58:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-16T22:15:13.000Z (almost 9 years ago)
- Last Synced: 2024-11-04T05:06:22.284Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gulp-dot-template
Render [doT templates](http://olado.github.io/doT/index.html)
## Installation
```
npm i gulp-dot-template --save
```## Usage
### `src/template.dot`
```
Hello, {{=it.name}}!
```### `gulpfile.js`
```js
var gulp = require('gulp');
var template = require('gulp-dot-template');gulp.task('default', function () {
return gulp.src('src/template.dot')
.pipe(template({ name: 'Bob' }))
.pipe(gulp.dest('dist'));
});
```## License
MIT