staticmatic 0.11.0.alpha.3 → 0.11.0.alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/staticmatic/base.rb +2 -1
- data/lib/staticmatic/mixins/render.rb +1 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/staticmatic/base.rb
CHANGED
@@ -53,7 +53,8 @@ module StaticMatic
|
|
53
53
|
|
54
54
|
# TODO: DRY this _exists? section up
|
55
55
|
def template_exists?(name, dir = '')
|
56
|
-
|
56
|
+
|
57
|
+
File.exists?(File.join(@src_dir, 'pages', dir, "#{name}.haml")) || File.exists?(File.join(@src_dir, 'stylesheets', "#{name}.sass")) || File.exists?(File.join(@src_dir, 'stylesheets', "#{name}.scss"))
|
57
58
|
end
|
58
59
|
|
59
60
|
def layout_exists?(name)
|