
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
gulp-handlebars-render
Advanced tools
Renders handlebars templates
My usecase is fully rendering hbs templates with data for livereload preview.
npm install gulp-handlebars-render --save-dev
The plugin accepts a data object, which it will apply to any handlebars templates that are passed into it.
The output will be a rendered HTML file per template.
var gulp = require('gulp'),
connect = require('gulp-connect'),
cache = require('gulp-cached'),
render = require('gulp-handlebars-render');
var content = {
title: "Lorem ipsum dolor sit amet"
author: "Frindle Babbin"
content: "This is a post"
}
gulp.task('connect', function() {
connect.server({
root: 'build/',
livereload: true
});
});
gulp.task('html', function () {
gulp.src('./src/templates/*.hbs')
.pipe(cache('html'))
.pipe(render(content))
.pipe(gulp.dest('build/'))
.pipe(connect.reload());
});
FAQs
Renders handlebars templates
We found that gulp-handlebars-render 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
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.