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 37K
  • Win 16K
  • OS X 15K
  • Linux 7K
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 49 63 54 38 26 49 50 44 64 51 21 40 37 45 43 47 64 27 29 44 58 63 57 74 32 50 54 61 59 62 65 36 50 66 90 56 64 33 30 39 44 58 67 60 48 28
OS X 17 38 34 26 26 36 42 31 37 43 29 24 33 38 40 38 47 31 31 32 36 43 58 50 14 22 47 33 49 40 58 24 37 55 58 49 49 49 12 25 35 32 41 71 46 24
Linux 5 27 16 17 7 19 21 15 14 24 14 10 26 15 21 8 11 20 6 15 22 19 17 17 10 9 9 14 20 25 13 13 22 15 36 19 22 14 14 12 15 25 21 30 26 14

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.