srecode/web.srt
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 13 Aug 2016 18:22:31 +0300
changeset 1414 436e2cb0d9c0
parent 1411 3ed65138057b
permissions -rw-r--r--
Rename own org variable and function to use "my/" prefix.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1150
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
;; (setq srecode-mode-table-list nil)
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
;; (srecode-load-tables-for-mode 'web-mode)
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
;; (srecode-dump-templates "web-mode")
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
set mode "web-mode"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
set escape_start "{{"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
set escape_end "}}"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
set comment_start "<!--"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
set comment_end "--!>"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
set comment_prefix ""
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
context file
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
template empty
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
"Fill out an empty file."
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
<!DOCTYPE html>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
<html>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    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
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
</head>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
<body>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
  {{^}}
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
</body>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
</html>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
bind "h"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
;; prompt NAME "Name for declaration: "
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
template tag
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
""
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    39
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
<{{?NAME}}>{{^}}</{{NAME}}>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
bind "t"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    43
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
template js :indent
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    45
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    46
<script src="{{^}}"></script>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    47
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
bind "j"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    49
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
template js-inline :indent
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
<script>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    53
{{^}}
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    54
</script>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    55
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    56
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    57
template css :indent
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    58
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    59
<link rel="stylesheet" type="text/css" href="{{^}}">
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
bind "c"
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    63
template css-inline :indent
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    65
<style>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    66
{{^}}
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    67
</style>
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    68
----
dad3fb58f710 Add srecode templates.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    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