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

Pug

by davidrios ALL

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

Details

Installs

  • Total 91K
  • Win 42K
  • Mac 32K
  • Linux 17K
Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27
Windows 2 0 1 2 1 0 2 0 0 2 0 1 0 1 1 1 1 1 0 0 1 0 0 0 2 1 1 1 1 0 0 0 1 2 0 2 0 1 0 0 0 0 1 2 0 0
Mac 0 0 0 0 2 2 1 2 2 1 1 2 1 1 2 0 1 1 0 0 1 2 1 0 2 0 1 1 0 2 0 1 3 2 1 3 2 0 1 0 1 0 3 1 0 0
Linux 0 0 0 2 0 0 0 1 0 0 0 0 2 2 0 0 0 0 0 1 0 0 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1

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.