Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suffix and template extension #10

Open
xenoterracide opened this issue Nov 6, 2011 · 3 comments
Open

suffix and template extension #10

xenoterracide opened this issue Nov 6, 2011 · 3 comments

Comments

@xenoterracide
Copy link

follow up for RT #68799 and to resummarize here (sorry, just hating on RT)

suffix is not provided per docs in CVX::Helper in 0.12.

patch was added in the latest git.

The project I had been working on was killed / or moved to dancer; so I apologize for not getting back to you.

It looks like the test now passes if suffix is defined.

However, I I'm not sure I understand the difference between suffix and template_extension. It seems that the former is for Text::Xslate and the latter is for Catalyst. However, why would I want both? it would seem that perhaps they should simply be an alias? DWIM principle.

@lestrrat
Copy link
Collaborator

lestrrat commented Nov 7, 2011

@xenoterracide
Copy link
Author

well like I said, template_extensions seems to be for catalyst route handling while suffix is for xslate (right?) from reading that. But I don't see why I would want both, it would seem to me that I would always want them both set to the same thing.

@wreis
Copy link
Contributor

wreis commented May 5, 2012

Agreed. I fail to see an use case where you'd want to set 'suffix' and 'template_extension' to different values. If my templates are named using '.foo' suffix, then I'd configure Text::Xslate's 'suffix' option to '.foo' and I wouldn't expect the C::View::Xslate to try and look for a template called 'action_name.tt' (as per default value) or using whatever other suffix that might be in 'template_extension' option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants