render smarty templates to *.html
My usecase is fully rendering smarty templates with data for slice-cli livereload preview.
npm install gulp-smarty4js-render --save-dev
The plugin will apply to any smarty templates
The output will be a rendered HTML file per template.
var gulp = require('gulp'),
render = require('gulp-smarty4js-render');
gulp.task('html', function () {
gulp.src('./src/templates/*.tpl')
.pipe(gulp.dest('build/'))
});gulp-smarty4js-render can be called with options Object
Type: Object
Type: String
Default: {{
Type: String
Default: }}
Type: String
Default: ``
Type: String
Default: ``
Type: Object
Default: {}
Type: String
Default: ``
Type: String
Default: ``
// if compile source is template code and have `include, extend...` sentence in code
// you must give a path