ETPL
An ETPL syntax definition & snippets specifically for Sublime Text.
Details
Installs
- Total 174
- Win 88
- Mac 79
- Linux 7
May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 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
:
Mustache style syntax & Tomorrow.tmTheme
:
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/
- OS X:
- Sublime Text 2
- OS X:
~/Library/Application Support/Sublime Text 2/Packages/
- Linux:
~/.Sublime Text 2/Packages/
- Windows:
%APPDATA%/Sublime Text 2/Packages/
- OS X:
Get it through Sublime Package Control
If you haven't used it yet, just install it from the link above and then:
- Press Shift + Command (or Ctrl) + P
- Type
install
, to bring up the “Package Control: Install Package” option, and press Enter - 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.