🚀 Launch Week Day 2:Introducing Custom Tabs for Org Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

template-render

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template-render

Plugin for rendering vinyl files in an assemble, verb, or gulp pipeline.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
63
57.5%
Maintainers
1
Weekly downloads
 
Created
Source

template-render NPM version

Plugin for rendering vinyl files in an assemble, verb, or gulp pipeline.

Install

Install with npm

npm i template-render --save

Run tests

npm test

Usage

var assembleRender = require('template-render');

API

.renderPlugin

Template renderer plugin used to render templates passed through the stream.

var app = require('assemble');
var renderPlugin = require('template-render');

.render

Create a stream that will render files with template.

  • options {Object}: Additional options to use.
  • locals {Object}: Additional locals to pass to the renderer.
  • returns {Stream}: Stream compatible with Assemble, Vinyl, or Gulp pipelines
var render = renderPlugin(app);
app.task('build-posts', function () {
  app.src('*.hbs')
    .pipe(render());
});

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Brian Woodward

License

Copyright (c) 2014 Brian Woodward
Released under the MIT license

This file was generated by verb on December 12, 2014.

FAQs

Package last updated on 12 Dec 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