Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
gulp-html2kissy
Advanced tools
html2kissy plugin for gulp
First, install gulp-html2kissy
as a development dependency:
npm install --save-dev gulp-ejs
Then, add it to your gulpfile.js
:
var html2kissy = require("gulp-html2kissy");
gulp.src("./templates/*.html")
.pipe(html2kissy({
package: "udata/views"
}))
.pipe(gulp.dest("./udata/views"));
If you want to use gulp-html2kissy
in a watch/livereload task, you may want to avoid gulp exiting on error when, for instance, a partial file is ENOENT
.
Here's an example on how to make it work:
var html2kissy = require('gulp-html2kissy');
var gutil = require('gulp-util');
gulp.src('./templates/*.html')
.pipe(html2kissy({
package: "udata/views"
}).on('error', gutil.log))
.pipe(gulp.dest('./udata/views'));
This will make gulp log the error and continue normal execution.
Type: hash
Default: {}
Type: hash
Default: {ext: '.html'}
A hash object to configure the plugin.
Type: String
Default: .html
Defines the default file extension that will be appended to the filename.
FAQs
transform html templates to kissy module.
The npm package gulp-html2kissy receives a total of 0 weekly downloads. As such, gulp-html2kissy popularity was classified as not popular.
We found that gulp-html2kissy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.