Fix ssi include for apache
Vladimir Timofeev [Thu, 10 Jun 2010 16:42:52 +0000 (20:42 +0400)]
Nginx parse "<!--# include..." correctly (space after sharp), but
apache require no space between sharp and directive name.

lib/Catalyst/View/Component/SubInclude/SSI.pm

index 0c94e94..7fe63a5 100644 (file)
@@ -47,7 +47,7 @@ path is handled internally. After translation, this will roughly translate to
 the following code:
 
   my $url = $c->uri_for( $translated_path, @args )->path_query;
-  return '<!--# include virtual="$url" -->';
+  return '<!--#include virtual="$url" -->';
 
 Notice that the stash will always be empty. This behavior could be configurable
 in the future through an additional switch - for now, this behavior guarantees a
@@ -60,7 +60,7 @@ sub generate_subinclude {
 
     my $uri = $c->uri_for_action( $path, @params );
 
-    return '<!--# include virtual="' . $uri->path_query . '" -->';
+    return '<!--#include virtual="' . $uri->path_query . '" -->';
 }
 
 =head1 SEE ALSO