2.0.1 • Published 7 years ago

desq-pug v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

desq-pug

npm npm npm

Pug integration for desq

This requires desq 2.0.0 or higher.

Installation

npm install desq-pug

Usage

const PugPlugin = require('desq-pug');

client.add(new PugPlugin({

	// Filter sources:
	// Default will filter for '.pug' files.
	filter: (context, source) => source.extname === '.pug',

	// Compute the options passed to the less compiler:
	// Default will provide the source directory path for includes.
	options: (context, source) => ({
		filename: source.path
	})

	// Compute the output path:
	// Default will be an equivalent one to the relative source path.
	output: (context, source) => context.outputFile(source.rel, '.html'),

}));

All options (including the options object itself) are optional

Contributing

See the contributing section in desq/readme

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago