Permalink
Browse files

Minor changes to how file works.

  • Loading branch information...
1 parent f8e5ea2 commit 57d8e4d9ab74fa9dbe4a635e4bab1b3d9e18556f @supernovus committed Oct 24, 2010
Showing with 4 additions and 2 deletions.
  1. +1 −1 README
  2. +3 −1 lib/Flower.pm
View
2 README
@@ -100,7 +100,7 @@ In addition, the following sets are planned for inclusion very soon:
- Hash, same as the :hash set from Petal::Utils
The syntax for the Flower::Utils methods is based on the modifiers from
-Petal::Utils, but extended to use the Flower-specific get-opts method (the
+Petal::Utils, but extended to use the Flower-specific extensions (the
same method that is used to parse method call parameters in queries.)
As is obvious, the syntax is not always the same, and not all of the
modifiers are the same.
View
@@ -70,7 +70,9 @@ method new (:$find is copy, :$file, :$template is copy) {
}
}
if $file {
- my $filename = $find($file);
+ my $filename;
+ if ($file.IO ~~ :f) { $filename = $file; }
+ else { $filename = $find($file); }
$template = Exemel::Document.parse(slurp($filename));
}
else {

0 comments on commit 57d8e4d

Please sign in to comment.