rad_core 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rad/template/_template.rb +2 -2
- metadata +1 -1
@@ -18,7 +18,7 @@ class Rad::Template
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def read tname, options = {}
|
21
|
-
file = find_template(tname, options) ||
|
21
|
+
file = find_template(tname, options) || raise("no template '#{tname}'!")
|
22
22
|
File.read file
|
23
23
|
end
|
24
24
|
|
@@ -31,7 +31,7 @@ class Rad::Template
|
|
31
31
|
options[:file] ||
|
32
32
|
find_template(options[:template], options.merge(scope)) ||
|
33
33
|
(options[:if_not_exist] && find_template(options[:if_not_exist], options.merge(scope))) ||
|
34
|
-
|
34
|
+
raise("no template '#{options[:template]}'!")
|
35
35
|
)
|
36
36
|
|
37
37
|
scope[:current_dir] = dirname(file)
|