An ETPL syntax definition & snippets specifically for Atom.
ETPL is a reusable, flexible, high-performance JavaScript template engine for Browser & Node.
target:
+ Tab →<!-- target: TARGET_NAME(master = MASTER_NAME) -->
block:
+ Tab →<!-- block: BLOCK_NAME --> ... <!-- /block -->
import:
+ Tab →<!-- import: TARGET_NAME -->
use:
+ Tab →<!-- use: TARGET_NAME(ASSIGNMENT_EXPRESSIONS) -->
var:
+ Tab →<!-- var: VAR_NAME = EXPRESSION -->
for:
+ Tab →<!-- for: VARIABLE as ITEM, KEY_OR_INDEX --> ... <!-- /for -->
if:
+ Tab →<!-- if: CONDITIONAL_EXPRESSION --> ... <!-- /if -->
elif:
+ Tab →<!-- elif: CONDITIONAL_EXPRESSION -->
else:
+ Tab →<!-- else -->
filter:
+ Tab →<!-- filter: FILTER_NAME(ARGUMENTS) --> ... <!-- /filter -->
MIT © Baidu Inc.