New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gulp-dust-html

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-dust-html

Render dust templates in HTML

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

Render dust templates into HTML

Issues with the output should be reported on the Dust issue tracker.

Install

$ npm install --save-dev gulp-dust-html dustjs-linkedin

Usage

var gulp = require('gulp');
var dust = require('dustjs-linkedin');
dust.helpers = require('dustjs-helpers').helpers;
var dusthtml = require('gulp-dust-html');

gulp.task('default', function () {
  return gulp.src('templates/index.html')
	 .pipe(dusthtml({
	   basePath: 'templates',
           data: data
         }))
	 .pipe(gulp.dest('dist'));
});

API

dust([options])

options

basePath

Type: string
Default: '.'

Relative templates directory path (used to resolve partials). Example: templates

whitespace

Type: boolean
Default: false

Preserve whitespace.

data

Type: object or function Default: {}

Context which is passed to dust templates. If a function is provided the function will be called with one parameter, the name of the file

defaultExt

Type: string Default: .dust

Default extension used for templates

Todo

  • Update tests to reflect the new codebase
  • Think of a better way to handle context passing (maybe a contents directory?)

License

MIT

Keywords

gulpplugin

FAQs

Package last updated on 28 Apr 2017

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