Inline wrappers and includes now work on Windows

closes gh-13
This commit is contained in:
Htbaa
2011-02-26 12:46:02 +01:00
parent a896a311bb
commit dc52fec399
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -1,6 +1,8 @@
Revision history for MojoX-Renderer-TT
{{$NEXT}}
- Inline wrappers and includes now work on Windows
(GH#13, Christiaan Kras)
1.11 February 6, 2011
- Change to use relative paths (Marcus Ramberg)
+1
View File
@@ -151,6 +151,7 @@ sub _template_content {
my ($path) = @_;
my ($t) = ($path =~ m{templates[\/|\\](.*)$});
$t =~ s/\\/\//g;
if (-r $path) {
return $self->SUPER::_template_content(@_);
+2 -2
View File
@@ -94,13 +94,13 @@ __DATA__
@@ include.inc
Hello
@@ includes/include.inc
@@ includes/sub/include.inc
Hallo
@@ include.html.tt
[%- INCLUDE 'include.inc' -%]
Include!
[% INCLUDE 'includes/include.inc' -%]
[% INCLUDE 'includes/sub/include.inc' -%]
@@ layouts/layout.html.tt
w[%- content -%]d