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

ETPL

by ecomfe ALL

An ETPL syntax definition & snippets specifically for Sublime Text.

Details

Installs

  • Total 166
  • Win 82
  • Mac 77
  • Linux 7
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 Sep 2 Sep 1 Aug 31 Aug 30
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime ETPL

An ETPL syntax definition & snippets specifically for Sublime Text.

About ETPL

ETPL is a reusable, flexible, high-performance JavaScript template engine for Browser & Node.

Screenshot

Default syntax & base16-ocean.dark.tmTheme:

Base 16 Ocean

Mustache style syntax & Tomorrow.tmTheme:

Tomorrow

Install

Get it through Git

Clone the repository in your Sublime Text Packages directory:

git clone https://github.com/ecomfe/sublime-etpl.git ETPL

The Packages directory is located at:

  • Sublime Text 3
    • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
    • Linux: ~/.Sublime Text 3/Packages/
    • Windows: %APPDATA%/Sublime Text 3/Packages/
  • Sublime Text 2
    • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
    • Linux: ~/.Sublime Text 2/Packages/
    • Windows: %APPDATA%/Sublime Text 2/Packages/

Get it through Sublime Package Control

If you haven't used it yet, just install it from the link above and then:

  1. Press Shift + Command (or Ctrl) + P
  2. Type install, to bring up the “Package Control: Install Package” option, and press Enter
  3. Look for ETPL, and press Enter to install it.

Settings

Go to Preferences > Package Settings > ETPL > Settings - User, insert & override the following JSON snippet:

{
    "commandOpen": "",
    "variableOpen": "${",
    "variableClose": "}"
}

Usage

Comments

Key bindings for “:

  • OS X: Command + /
  • Linux/Windows: Ctrl + /

Snippets

  • target: + Tab → ”
  • block: + Tab...
  • import: + Tab → “
  • use: + Tab → ”
  • var: + Tab → “
  • for: + Tab...
  • if: + Tab...
  • elif: + Tab → ”
  • else: + Tab → “
  • filter: + Tab...

Related

Contributors

License

MIT © Baidu Inc.