gulp-thymeleaf
Thymeleaf plugin for gulp
Install
$ npm install --save-dev gulp-thymeleaf
Example
Give only context for template
const gulp = ;const thymeleaf = ; gulp
Give context and options for template
const fs = const gulp = ;const thymeleaf = ; gulp
Give only options for template
const fs = const gulp = ;const thymeleaf = ; gulp
API
thymeleaf(context, options)
context
Type: Hash
Default: {}
options
Type: Hash
Default: thymeleaf.Thymeleaf.STANDARD_CONFIGURATION
Given options
will override STANDARD_CONFIGURATION
.
See available options on ThymeleafJS document.
Note
- Default options are based on
STANDARD_CONFIGURATION
which makes prefixth
(NOTthjs
).