Still an error when using a WRAPPER
I found that Dancer2 can accept the WRAPPER directive in a TT template, but if the file name of the wrapper is wrapper.tt, it still gives the error: Internal Server Error file error - parse error - E:\web\mdw\views\index.tt line 1: unexpected token (WRAPPER) [% WRAPPER wrapper.tt %] If I change the name of the wrapper file with something else, for example test.tt and use [% WRAPPER test.tt %] then it works fine. Strange. --Octavian
On 03/12/2013 07:06 AM, Octavian Rasnita wrote:
I found that Dancer2 can accept the WRAPPER directive in a TT template, but if the file name of the wrapper is wrapper.tt, it still gives the error:
Internal Server Error file error - parse error - E:\web\mdw\views\index.tt line 1: unexpected token (WRAPPER) [% WRAPPER wrapper.tt %]
If I change the name of the wrapper file with something else, for example test.tt and use
[% WRAPPER test.tt %]
then it works fine. Strange.
This isn't anything to do with Dancer. It's a limitation of the TT parser. Dave... -- Dave Cross :: dave@dave.org.uk http://dave.org.uk/ @davorg
From: "Dave Cross" <dave@dave.org.uk>
On 03/12/2013 07:06 AM, Octavian Rasnita wrote:
I found that Dancer2 can accept the WRAPPER directive in a TT template, but if the file name of the wrapper is wrapper.tt, it still gives the error:
Internal Server Error file error - parse error - E:\web\mdw\views\index.tt line 1: unexpected token (WRAPPER) [% WRAPPER wrapper.tt %]
If I change the name of the wrapper file with something else, for example test.tt and use
[% WRAPPER test.tt %]
then it works fine. Strange.
This isn't anything to do with Dancer. It's a limitation of the TT parser.
Dave...
Hmm, strange. That works fine with Catalyst. Octavian
participants (2)
-
Dave Cross -
Octavian Rasnita