srecode/web.srt
changeset 1150 dad3fb58f710
child 1159 865c275e0a7d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/srecode/web.srt	Thu Jul 24 14:01:58 2014 +0300
@@ -0,0 +1,69 @@
+
+;; (setq srecode-mode-table-list nil)
+;; (srecode-load-tables-for-mode 'web-mode)
+;; (srecode-dump-templates "web-mode")
+
+set mode "web-mode"
+
+set escape_start "{{"
+set escape_end "}}"
+
+set comment_start "<!--"
+set comment_end "--!>"
+set comment_prefix ""
+
+context file
+
+template empty
+"Fill out an empty file."
+----
+<!DOCTYPE html>
+<html>
+<head>
+  <title>{{?TITLE}}</title>
+  <meta name="viewport" content="width=device-width; initial-scale=1.0"/>
+  <meta charset="utf-8"/>
+</head>
+<body>
+  {{^}}
+
+</body>
+</html>
+----
+bind "h"
+
+;; prompt NAME "Name for declaration: "
+
+template tag
+""
+----
+<{{?NAME}}>{{^}}</{{NAME}}>
+----
+bind "t"
+
+template js :indent
+----
+<script src="{{^}}"></script>
+----
+bind "j"
+
+template js-inline :indent
+----
+<script>
+{{^}}
+</script>
+----
+
+template css :indent
+----
+<link rel="stylesheet" type="text/css" href="{{^}}">
+----
+bind "c"
+
+template css-inline :indent
+----
+<style>
+{{^}}
+</style>
+----
+