All Projects → gulp-community → Gulp Pug

gulp-community / Gulp Pug

Licence: mit
Gulp plugin for compiling Pug templates

Programming Languages

javascript
184084 projects - #8 most used programming language

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
anyfs
Portable file system for Node
Stars: ✭ 17 (-96.68%)
Mutual labels:  gulp, gulp-plugin
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
code-line-daily
A line of code of the day.
Stars: ✭ 17 (-96.68%)
Mutual labels:  gulp, pug
generator-vintage-frontend
Modern front-end workflow
Stars: ✭ 15 (-97.07%)
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-boilerplate
Gulp boilerplate
Stars: ✭ 24 (-95.31%)
Mutual labels:  gulp, pug
gulp-golang
gulp plugin for golang projects
Stars: ✭ 13 (-97.46%)
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 Build Status Dependencies Downloads

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 to pug's own options.
  • opts.locals (Object): Locals to compile the Pug with. You can also provide locals through the data field of the file object, e.g. with gulp-data. They will be merged with opts.locals.
  • opts.data (Object): Same as opts.locals.
  • opts.client (Boolean): Compile Pug to JavaScript code.
  • opts.pug: A custom instance of Pug for gulp-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

Thanks

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].