0.2.0 • Published 6 months ago

gulp-smarty4js-render v0.2.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 months ago

gulp-smarty4js-render

render smarty templates to *.html

Abstract

My usecase is fully rendering smarty templates with data for slice-cli livereload preview.

Install

npm install gulp-smarty4js-render --save-dev

Usage

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/'))
});

API

gulp-smarty4js-render can be called with options Object

replace(options)

options

Type: Object

options.left_delimiter

Type: String
Default: {{

options.right_delimiter

Type: String
Default: }}

options.baseDir

Type: String
Default:

options.templatesDataDir

Type: String
Default:

options.dataManifest

Type: Object
Default: {}

options.constPath

Type: String
Default:

options.rootDir

Type: String
Default:

// if compile source is template code and have `include, extend...` sentence in code

// you must give a path
0.2.0

6 months ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

6 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago