linner 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/linner/template.rb +11 -5
- data/lib/linner/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: f0bd139ca78130131ca3cc2c5bdf8b46f88ff4b8
|
4
|
+
data.tar.gz: 282a2aff6ff90978dd47c241592911226216829f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f889e7634447fe5f4f1b7e1747d88189bb59ae4ce45388d1026e56469ca40c1756f3c3ba9c815e56e6d24fa394885236e376fec9a225099d4adea219ee01de49
|
7
|
+
data.tar.gz: 43e91e47a4c8615b0660b43238c59d9e8be44c5e2f47f69e58b2d2e398104a8a82523debbb8981a9817638b018bc8830c9784f35ee78e83e581fa72de4bee9c8
|
data/CHANGELOG
CHANGED
data/lib/linner/template.rb
CHANGED
@@ -5,16 +5,20 @@ require "handlebars.rb"
|
|
5
5
|
require "coffee_script"
|
6
6
|
|
7
7
|
module Tilt
|
8
|
+
class YAMLTemplate < PlainTemplate
|
9
|
+
self.default_mime_type = "text/x-yaml"
|
10
|
+
end
|
11
|
+
|
8
12
|
class JavascriptTemplate < PlainTemplate
|
9
|
-
self.default_mime_type =
|
13
|
+
self.default_mime_type = "application/javascript"
|
10
14
|
end
|
11
15
|
|
12
16
|
class CSSTemplate < PlainTemplate
|
13
|
-
self.default_mime_type =
|
17
|
+
self.default_mime_type = "text/css"
|
14
18
|
end
|
15
19
|
|
16
20
|
class CompassSassTemplate < SassTemplate
|
17
|
-
self.default_mime_type =
|
21
|
+
self.default_mime_type = "text/css"
|
18
22
|
|
19
23
|
private
|
20
24
|
def sass_options
|
@@ -27,7 +31,7 @@ module Tilt
|
|
27
31
|
end
|
28
32
|
|
29
33
|
class CompassScssTemplate < CompassSassTemplate
|
30
|
-
self.default_mime_type =
|
34
|
+
self.default_mime_type = "text/css"
|
31
35
|
|
32
36
|
private
|
33
37
|
def sass_options
|
@@ -36,7 +40,7 @@ module Tilt
|
|
36
40
|
end
|
37
41
|
|
38
42
|
class HandlebarsTemplate < Template
|
39
|
-
self.default_mime_type =
|
43
|
+
self.default_mime_type = "text/template"
|
40
44
|
|
41
45
|
def prepare; end
|
42
46
|
|
@@ -45,8 +49,10 @@ module Tilt
|
|
45
49
|
end
|
46
50
|
end
|
47
51
|
|
52
|
+
register PlainTemplate, "txt"
|
48
53
|
register CSSTemplate, "css"
|
49
54
|
register JavascriptTemplate, "js"
|
55
|
+
register YAMLTemplate, "yml", "yaml"
|
50
56
|
register HandlebarsTemplate, "hbs", "handlebars"
|
51
57
|
|
52
58
|
register CompassSassTemplate, "sass"
|
data/lib/linner/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|