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 172
  • Win 87
  • Mac 78
  • Linux 7
Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18
Windows 0 0 0 0 0 0 0 0 0 1 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 1 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.