You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2012/01/27 04:11:44 UTC
svn commit: r1236504 - /openejb/site/trunk/lib/view.pm
Author: dblevins
Date: Fri Jan 27 03:11:44 2012
New Revision: 1236504
URL: http://svn.apache.org/viewvc?rev=1236504&view=rev
Log:
Test if the include file exists
Modified:
openejb/site/trunk/lib/view.pm
Modified: openejb/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/openejb/site/trunk/lib/view.pm?rev=1236504&r1=1236503&r2=1236504&view=diff
==============================================================================
--- openejb/site/trunk/lib/view.pm (original)
+++ openejb/site/trunk/lib/view.pm Fri Jan 27 03:11:44 2012
@@ -84,6 +84,8 @@ sub basic {
my @includes = ($args{content} =~ m/{include:([^ ]+?)}/g);
foreach my $include (@includes) {
+ next unless ( -e "content/$include");
+
my %a = ();
read_text_file("content/$include", \%a);
my $text = $a{content};