author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 13 Aug 2016 18:22:31 +0300 | |
changeset 1414 | 436e2cb0d9c0 |
parent 1411 | 3ed65138057b |
permissions | -rw-r--r-- |
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> |
|
1410
3f52af9aea5a
Present character encoding at first.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1159
diff
changeset
|
23 |
<meta charset="utf-8"/> |
1411
3ed65138057b
Fix: The value "device-width;" for key "width" is invalid, and has been ignored.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1410
diff
changeset
|
24 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
1410
3f52af9aea5a
Present character encoding at first.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1159
diff
changeset
|
25 |
<title>{{?TITLE}}</title> |
1150 | 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 |
||
1159
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
70 |
template meta-charset :indent |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
71 |
---- |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
72 |
<meta charset="{{^}}"/> |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
73 |
---- |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
74 |
|
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
75 |
template meta-viewport :indent |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
76 |
---- |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
77 |
<meta name="viewport" content="width=device-width; initial-scale=1.0"/> |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
78 |
---- |
865c275e0a7d
"meta charset" and "meta viewport" templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1150
diff
changeset
|
79 |