Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dancer CPAN distribution.

Report information
The Basics
Id: 58355
Status: resolved
Priority: 0/
Queue: Dancer

People
Owner: Nobody in particular
Requestors: KAPPA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.1803
Fixed in: (no value)



Subject: Default template engine has bugs with several vars on 1 line
How to repeat: 1. Use default Dancer::Template::Simple. 2. Have this in template: "<% var1 %>/<% var1 %>". 3. Pass "xxx" as var1. What to expect: 1. xxx/xxx What is rendered: 1. xxx %>/xxx Another one: ... 2. Have this in template: "<% var1 /<% var1 %>" What to expect: 1. "<% var1 /xxx" What is rendered: 1. "xxx/xxx"
Actually, I'm thinking at removing Dancer::Template::Simple. It's too much work to maintain and it's not our job. Our job is to provide a web framework, not another Tempalte engine.
Пнд Июн 14 07:24:25 2010, SUKRIA писал: Show quoted text
> Actually, I'm thinking at removing Dancer::Template::Simple. It's too > much work to maintain and it's not our job. Our job is to provide a web > framework, not another Tempalte engine.
As far as I understand the whole purpose of ::Simple is to get rid of a dependency on a real templating engine. I do think that all this "no dependencies" goal is totally ridiculous and sometimes even harmful so I would support the deletion of ::Simple and depending (or importing) a good templating engine. Meanwhile, distributing buggy code is still very bad. This bug was found when I was mentoring a beginner on Dancer and he just used whatever templating engine was default.
This bug has been fixed in 1.1804, thanks for the report. We plan to deprecated Dancer::Template::Simple in the future and make the scaffolding script prompt the user for a template he likes.