Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Is possible to change file extension


Reply


4 Posts   1332 Views

Avatar
leafchild

Community Member, 41 Posts

17 February 2011 at 11:04am

I want change template file type.
Is possible to do change file tipe?

ex)
filename.ss ->filename.php

Avatar
Ryan M.

Community Member, 309 Posts

17 February 2011 at 12:54pm

I don't think so, at least not without some heavy customization of how Sapphire processes templates.

Are you looking for a PHP-based templating engine?

Avatar
leafchild

Community Member, 41 Posts

17 February 2011 at 1:02pm

Thank you for the response.

I used cakePHP and cake allows to change template file type from filename.ctp -> filename.whatever-extension
so I thought it's possible to do it with SS.

I just prefer to use something.php file type.

Avatar
Ryan M.

Community Member, 309 Posts

18 February 2011 at 8:13am

I haven't used any different templating engines with SS, but maybe somebody else here has.

Otherwise, I'd probably say you have to hack the core a little bit to get it to accept .php templates. IMO, not worth the trouble.