1150
|
1 |
|
|
2 |
;; (setq srecode-mode-table-list nil)
|
|
3 |
;; (srecode-load-tables-for-mode 'web-mode)
|
|
4 |
;; (srecode-dump-templates "web-mode")
|
|
5 |
|
|
6 |
set mode "web-mode"
|
|
7 |
|
|
8 |
set escape_start "{{"
|
|
9 |
set escape_end "}}"
|
|
10 |
|
|
11 |
set comment_start "<!--"
|
|
12 |
set comment_end "--!>"
|
|
13 |
set comment_prefix ""
|
|
14 |
|
|
15 |
context file
|
|
16 |
|
|
17 |
template empty
|
|
18 |
"Fill out an empty file."
|
|
19 |
----
|
|
20 |
<!DOCTYPE html>
|
|
21 |
<html>
|
|
22 |
<head>
|
|
23 |
<title>{{?TITLE}}</title>
|
|
24 |
<meta name="viewport" content="width=device-width; initial-scale=1.0"/>
|
|
25 |
<meta charset="utf-8"/>
|
|
26 |
</head>
|
|
27 |
<body>
|
|
28 |
{{^}}
|
|
29 |
|
|
30 |
</body>
|
|
31 |
</html>
|
|
32 |
----
|
|
33 |
bind "h"
|
|
34 |
|
|
35 |
;; prompt NAME "Name for declaration: "
|
|
36 |
|
|
37 |
template tag
|
|
38 |
""
|
|
39 |
----
|
|
40 |
<{{?NAME}}>{{^}}</{{NAME}}>
|
|
41 |
----
|
|
42 |
bind "t"
|
|
43 |
|
|
44 |
template js :indent
|
|
45 |
----
|
|
46 |
<script src="{{^}}"></script>
|
|
47 |
----
|
|
48 |
bind "j"
|
|
49 |
|
|
50 |
template js-inline :indent
|
|
51 |
----
|
|
52 |
<script>
|
|
53 |
{{^}}
|
|
54 |
</script>
|
|
55 |
----
|
|
56 |
|
|
57 |
template css :indent
|
|
58 |
----
|
|
59 |
<link rel="stylesheet" type="text/css" href="{{^}}">
|
|
60 |
----
|
|
61 |
bind "c"
|
|
62 |
|
|
63 |
template css-inline :indent
|
|
64 |
----
|
|
65 |
<style>
|
|
66 |
{{^}}
|
|
67 |
</style>
|
|
68 |
----
|
|
69 |
|