temple 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/CHANGES +5 -0
- data/lib/temple/html/fast.rb +11 -6
- data/lib/temple/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de7a5f291f7511f72860f051904f76a53789d165
|
4
|
+
data.tar.gz: 8d879f88faf0ea956abaaeac2cc65d1c26669098
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c98e7222a80e362cb7570a9c5ca3a9db3f99082d8a8fe756f3420863e215faeccfd7b7b1063d845c695c9262b15746deed73f94a40ddb323f2548b51a58b189
|
7
|
+
data.tar.gz: da695941eb653ca94f4fb039b757c4fafe05ee9dc7c83dc11428cb6c05b31d72213d5a9d7dbfa70ef2fbadcd73446f17982ff5f9bb329bc06b97cffd21ab8295
|
data/.travis.yml
CHANGED
data/CHANGES
CHANGED
data/lib/temple/html/fast.rb
CHANGED
@@ -11,6 +11,7 @@ module Temple
|
|
11
11
|
'mobile' => '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">',
|
12
12
|
'basic' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
|
13
13
|
'transitional' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
|
14
|
+
'svg' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'
|
14
15
|
}.freeze
|
15
16
|
|
16
17
|
HTML_DOCTYPES = {
|
@@ -23,7 +24,7 @@ module Temple
|
|
23
24
|
|
24
25
|
define_options :format => :xhtml,
|
25
26
|
:attr_quote => '"',
|
26
|
-
:autoclose => %w[
|
27
|
+
:autoclose => %w[base basefont bgsound link meta area br embed img keygen wbr input menuitem param source track hr col frame],
|
27
28
|
:js_wrapper => nil
|
28
29
|
|
29
30
|
HTML = [:html, :html4, :html5]
|
@@ -56,7 +57,7 @@ module Temple
|
|
56
57
|
end
|
57
58
|
|
58
59
|
def html?
|
59
|
-
|
60
|
+
!xhtml?
|
60
61
|
end
|
61
62
|
|
62
63
|
def on_html_doctype(type)
|
@@ -104,10 +105,14 @@ module Temple
|
|
104
105
|
end
|
105
106
|
|
106
107
|
def on_html_attr(name, value)
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
108
|
+
if html? && empty_exp?(value)
|
109
|
+
[:static, " #{name}"]
|
110
|
+
else
|
111
|
+
[:multi,
|
112
|
+
[:static, " #{name}=#{options[:attr_quote]}"],
|
113
|
+
compile(value),
|
114
|
+
[:static, options[:attr_quote]]]
|
115
|
+
end
|
111
116
|
end
|
112
117
|
|
113
118
|
def on_html_js(content)
|
data/lib/temple/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: temple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Magnus Holm
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-07-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: tilt
|