Comment 4 for bug 242698

Revision history for this message
Reed O'Brien (reedobrien) wrote : Re: [Bug 242698] Re: grok doesn't like explicit grok.template() if it matches implicitly found template

On Jun 24, 2008, at 1:30 PM, Martijn Faassen wrote:

> On Tue, Jun 24, 2008 at 6:05 PM, Ivo van der Wijk <email address hidden> wrote:
>> But then shouldn't grok complain it can't find appcss.pt?
>
> In this case that would indeed look nicer. Patches with tests are
> welcome, I'm not sure how hard it would be to make it behave more
> nicely. We could also decide to detect the use of an extension in
> grok.template and fail if that happens.
>
> --
> grok doesn't like explicit grok.template() if it matches implicitly
> found template
> https://bugs.launchpad.net/bugs/242698
> You received this bug notification because you are subscribed to grok.

I assume you mean explicitly detect a '.pt' extension and not '.html'
'.xml' et al.

What about snipping off the .pt and using the rest as the name.

At first I didn't like the name without the extension, but then I
changed my mind.

I would specifically be thinking I want this to go to 'foo.html'. In
which case I don't think of the '.pt' bit when I am typing.