CALS NOTE

  • Home
  • Archives
  • Cheatsheets
  • rss
  • About
  • Friends
2018-02-08 Calvin Lam
Comments

Pug Cli Cheatsheet

Pug

Installation

Thats a official cli for pug.

1
npm install -g pug-cli

Usage

1
2
3
4
5
6
7
8
9
10
11
// version
pug --version

// compile a file to foo-bar.html
pug foo-bar.pug

// compile a folder
pug templates/

// compile through StdIn / StdOut
echo "h1 hello-pug" | pug

Syntas

pug

Reference

https://www.npmjs.com/package/pug-cli
https://github.com/pugjs/pug-cli

  • Cli
  • Javascript
  • Node
  • Pug
  • Template
Newer
Linux password-less ssh and sudo
Older
Pug template syntax

CALS NOTE

© 2020 Calvin Lam
Modify from Apollo theme, designed by SANOGRAPHIX.NET
Powered by Hexo