ETPL
An ETPL syntax definition & snippets specifically for Sublime Text.
Details
Installs
- Total 169
- Win 84
- Mac 78
- Linux 7
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | 0 | 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 | 1 | 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
:
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.