howl 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/howl.gemspec +1 -1
- data/lib/howl/template.rb +3 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.4
|
data/howl.gemspec
CHANGED
data/lib/howl/template.rb
CHANGED
@@ -8,7 +8,7 @@ module Howl
|
|
8
8
|
viewables.push(*viewables)
|
9
9
|
end
|
10
10
|
|
11
|
-
attr_accessor :view, :
|
11
|
+
attr_accessor :view, :view_yaml, :content, :site, :path, :relative_path, :extension
|
12
12
|
|
13
13
|
def initialize(path, site)
|
14
14
|
@site = site
|
@@ -78,14 +78,15 @@ module Howl
|
|
78
78
|
|
79
79
|
view ||= ""
|
80
80
|
content ||= ""
|
81
|
+
@view_yaml = view
|
81
82
|
|
82
83
|
if test_for_yaml(view)
|
83
84
|
@content = content
|
84
|
-
@view_data = view
|
85
85
|
view = YAML.load(view)
|
86
86
|
else
|
87
87
|
@content = "#{view}\n\n#{content}".strip
|
88
88
|
view = {}
|
89
|
+
@view_yaml = nil
|
89
90
|
end
|
90
91
|
|
91
92
|
@view = View.new(view)
|