gulp-community / Gulp Pug
Licence: mit
Gulp plugin for compiling Pug templates
Stars: ✭ 512
Programming Languages
javascript
184084 projects - #8 most used programming language
Labels
Projects that are alternatives of or similar to Gulp Pug
web-generator
👑 Gulp based task runner which creates HTML output from Pug HTML templates
Stars: ✭ 13 (-97.46%)
Mutual labels: gulp, pug
generator-espress
an opinionated yeoman generator that scaffolds a mvc express webapp completely in es6
Stars: ✭ 20 (-96.09%)
Mutual labels: gulp, pug
gulp-tinypng-compress
TinyPNG API wrapper for compressing PNG & JPG images
Stars: ✭ 49 (-90.43%)
Mutual labels: gulp, gulp-plugin
gulp-convert-encoding
Plugin for gulp to convert files from one encoding to another.
Stars: ✭ 15 (-97.07%)
Mutual labels: gulp, gulp-plugin
gulp-iife
A Gulp plugin for wrapping JavaScript code in IIFEs.
Stars: ✭ 39 (-92.38%)
Mutual labels: gulp, gulp-plugin
design-studio one-page-template
Free responsive flat designed one page template
Stars: ✭ 67 (-86.91%)
Mutual labels: gulp, pug
gulp-yarn
Automatically install node modules using Yarn. 😻
Stars: ✭ 22 (-95.7%)
Mutual labels: gulp, gulp-plugin
generator-speedseed
Oriented to components, allow create/choice template, multiple configuration with easy maintenance
Stars: ✭ 13 (-97.46%)
Mutual labels: gulp, pug
gulp-markdown-to-json
Parse Markdown and YAML → compile Markdown to HTML → wrap it all up in JSON
Stars: ✭ 76 (-85.16%)
Mutual labels: gulp, gulp-plugin
gulp-recess
[DEPRECATED] Lint CSS and LESS with RECESS
Stars: ✭ 42 (-91.8%)
Mutual labels: gulp, gulp-plugin
sample-ui-react
Material-UI+ React.js + Redux [ Pug / Scss / Babel ]
Stars: ✭ 15 (-97.07%)
Mutual labels: gulp, pug
web-starter-kit-gulp
Starter kit for automated front-end web development using Gulp, NPM, Bower, Babel, Sass, and Pug.
Stars: ✭ 35 (-93.16%)
Mutual labels: gulp, pug
gulp-pug-inheritance
Only build affected files when modify a Pug file.
Stars: ✭ 16 (-96.87%)
Mutual labels: gulp, pug
speedy
Development environment for static pages using Gulp - Pug & Sass & browser-sync & babelify & browserify
Stars: ✭ 13 (-97.46%)
Mutual labels: gulp, pug
generator-yeomify-landing
Yeoman generator for landing project powered by Gulp
Stars: ✭ 29 (-94.34%)
Mutual labels: gulp, pug
gulp-pug
Gulp plugin for compiling Pug templates
This Gulp plugin enables you to compile your Pug templates into HTML or JS, with support for template locals, custom Pug filters, AMD wrapping, and others. Here is a simple example using gulp-pug
:
var pug = require('gulp-pug');
gulp.task('views', function buildHTML() {
return gulp.src('views/*.pug')
.pipe(pug({
// Your options in here.
}))
});
API
pug([opts])
-
opts
(Object
): Any options from Pug's API in addition topug
's own options. -
opts.locals
(Object
): Locals to compile the Pug with. You can also provide locals through thedata
field of the file object, e.g. withgulp-data
. They will be merged withopts.locals
. -
opts.data
(Object
): Same asopts.locals
. -
opts.client
(Boolean
): Compile Pug to JavaScript code. -
opts.pug
: A custom instance of Pug forgulp-pug
to use. -
opts.verbose
: display name of file from stream that is being compiled.
To change opts.filename
use gulp-rename
before gulp-pug
.
Returns a stream that compiles Vinyl files as Pug.
Also See
pug
-
gulp-data
: Using locals in your Pug templates easier. -
gulp-rename
: Changeopts.filename
passed into Pug. -
gulp-wrap-amd
: Wrap your Pug in an AMD wrapper. -
gulp-frontmatter-wrangler
: Useful if you need YAML frontmatter at the top of your Pug file.
Thanks
- Many thanks to Blaine Bublitz for the original
gulp-jade
plugin.
LICENSE
MIT © Jamen Marzonie
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].