ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Pug

by davidrios ST2/ST3

A comprehensive textmate / sublime text bundle for the Pug (formerly Jade) template language.

Details

Installs

  • Total 65K
  • Win 30K
  • OS X 24K
  • Linux 12K
Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7
Windows 2 29 24 33 19 41 34 32 28 32 34 14 18 36 27 26 20 17 21 18 19 29 14 22 28 21 16 14 27 11 30 22 27 22 29 26 17 49 39 14 0 0 45 31 29 25
OS X 8 16 27 22 7 6 17 9 12 23 18 4 9 19 13 21 17 17 8 6 10 16 16 14 14 11 8 24 16 25 20 17 6 8 14 27 19 19 18 5 0 1 23 29 16 22
Linux 5 10 10 12 8 5 14 13 11 7 13 8 8 9 10 10 13 4 6 11 11 6 10 7 11 8 4 11 10 14 11 13 7 8 7 7 13 11 17 4 0 1 11 8 6 6

Readme

Source
raw.​githubusercontent.​com

Pug.tmbundle

This was made specifically for Sublime Text 2, but was tested and works with Textmate 2 and Sublime Text 3

A TextMate Bundle for the Pug templating language. Implemented in JSON-tmLanguage, a compiled tmLanguage version is included. All language features that I know of (including some undocumented ones and quircks of the Pug parser) and some indent increase/decrease patterns are implemented.

A test.pug file is included for testing, it is a valid file, so you can compile it with pug to check its output.

A test_errors.pug file is also included for testing some syntax/semantic errors that are highlighted.

A highlighter using Python instead of JavaScript is also included for use with PyPug, you can either manually select Pug (Python) from the syntaxes list or give your file the extension .py.pug to select automatically (only on Sublime Text). Also included is a test.py.pug file that can be compiled with pypug to test it.

Installation

Using Package Control in SUblime Text 2/3

Package control is a package manager for Sublime Text extensions (think of it like “apt-get” for Sublime Text). If you haven't already, install Package Control into your instance of Sublime Text and restart. Choose Package Controll: Install Package (press Ctrl/Cmd + p and then type pi), search for package named Pug and install. Restart if you cannot select “Pug” from syntax highlighter menu.

TextMate 2

mkdir -p ~/Library/Application\ Support/TextMate/Managed/Bundles
cd ~/Library/Application\ Support/TextMate/Managed/Bundles
git clone https://github.com/davidrios/pug-tmbundle.git Pug.tmbundle

Sublime Text manual installation

mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/davidrios/pug-tmbundle.git Pug

Replace '2' with '3' in case of Sublime Text 3.

Patches for additions are always welcome.