changeset 550:d97881f33e28 dev

Add default template string for name="vieport" to meta completion
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 21 Aug 2018 10:49:30 +0900
parents a58a35eac93f
children e7356faf50df
files yahtml.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/yahtml.el	Tue Jul 31 08:21:44 2018 +0900
+++ b/yahtml.el	Tue Aug 21 10:49:30 2018 +0900
@@ -1623,7 +1623,8 @@
 
 (defvar yahtml:meta-attrs
   '(("charset" value)
-    ("name" content ("keywords")("author")("copyright")("date")("GENERATOR"))
+    ("name" content ("keywords")("author")("copyright")("date")("GENERATOR")
+     ("viewport"))
     ("http-equiv" content)))
 
 (defun yahtml:meta ()
@@ -1665,6 +1666,9 @@
 	      (error "Use <meta charset=\"...\" instead..  See docs/qanda.")
 	    (yahtml-make-optional-argument
 	     "content" (yahtml-read-parameter "content"))))
+	 ((string-match "viewport" name)
+	  ;; XXX: Very dirty static string
+	  "width=device-width, initial-scale=1")
 	 (t (read-string-with-history (concat name ": ")))))))
      (t (yahtml-make-optional-argument
 	 attr (yahtml-read-parameter attr))))))

yatex.org