This repository was archived by the owner on Sep 8, 2020. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathhtml-templates.cson
50 lines (50 loc) · 1.22 KB
/
html-templates.cson
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
".text.html:not(.meta.tag)":
"angular scaffold":
"prefix":"ngindex"
"body":"""
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/$1/angular.js"></script>
</head>
<body ng-app>
$2
</body>
</html>
"""
"angular.js from CDN":
"prefix":"ngsa"
"body":"""
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/$1/angular.js"></script>
"""
"ngTemplate script tag":
"prefix":"ngst"
"body":"""
<script type="text/ng-template" id="$1">
$2
</script>
"""
"ngInclude":
"prefix":"nginc"
"body":"""
<ng-include src="$1" ${2: onload="$3"} ${4: autoscroll="$5"}></ng-include>
"""
"ngPluralize":
"prefix":"ngplural"
"body":"""
<ng-pluralize count="$1" when="$2" ${3: offset="$4"}></ng-pluralize>
"""
"ngSwitch":
"prefix":"ngswitch"
"body":"""
<ng-switch on="$1">$2</ng-switch>
"""
"script template":
"prefix":"ngtmpl"
"body":"""
<script type="text/ng-template">$1</script>
"""
"ngView":
"prefix":"ngview"
"body":"""
<ng-view ${1: onload="$2"} ${3: $autoscroll="$4"}></ng-view>
"""