
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
gulp plugin to compile hogan templates.
First, install gulp-hogan as a development dependency:
npm install --save-dev gulp-hogan
Then, add it to your gulpfile.js:
Say our template.hogan is :
Follow @{{handle}}.
var hogan = require('gulp-hogan');
gulp.task('default', function(){
gulp.src('template.hogan')
.pipe(hogan({handle: 'gnumanth'}))
.pipe(gulp.dest('dist'));
});
Now dist will have template.js with content as Follow @gnumanth
Partials will be rendered recursively, allowing for template inheritance.
Folder structure
|-- templates
|-- page.hogan
|-- body.hogan
|-- partials
| |-- header.hogan
| |-- footer.hogan
page.hogan
<h1>Page</h1>
{{> body }}
body.hogan
{{> partials/header }}
{{> partials/footer }}
header.hogan
<header>
Logo {{#image}}<img>{{/image}}
</header>
footer.hogan
<footer>
Copyright {{year}}
</footer>
gulpfile.js
var hogan = require('gulp-hogan');
gulp.task('default', function(){
gulp.src('template/page.hogan', {}, '.html')
.pipe(hogan({year: '2016'}, null, '.html'))
.pipe(gulp.dest('dist'));
});
dist/page.html
<h1>Page</h1>
<header>
Logo <img>
</header>
<footer>
Copyright 2016
</footer>
FAQs
gulp plugin to compile mustache templates
The npm package gulp-hogan receives a total of 76 weekly downloads. As such, gulp-hogan popularity was classified as not popular.
We found that gulp-hogan 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.