Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-handlebars-render

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-handlebars-render

Renders handlebars templates

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-handlebars-render Build Status

Renders handlebars templates

Abstract

My usecase is fully rendering hbs templates with data for livereload preview.

Install

npm install gulp-handlebars-render --save-dev

Usage

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());
});

Keywords

FAQs

Package last updated on 11 Oct 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc