Re: [SMARTY] extensions
| From: | Maximillian Schwanekamp | Date: | Fri, 29 Apr 2005 17:11:59 +0000 |
| Subject: | Re: [SMARTY] extensions | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12553@lists.php.net to get a copy of this message | ||
John Martinez wrote:
The standard template extension seems to be .tpl which is no prob for me but I'm using Dreamweaver MX as a GUI for making the html template. ... 1. Is sending the template call to the .htm named template bad? any drawbacks? 2. If anyone knows how to set DMX to treat the .tpl extension as .htm this would prolly be a better fix. Calling the .htm doesn't feel right to me.You can use whatever extension you like for your Smarty template files. AFAIK .tpl is just a convention, like .inc for include files. Probably the easiest solution for you would be to use .tpl.html, or just .html, for your template files. OTOH you can make DWMX recognize .tpl extensions: http://smarty.incutio.com/?page=ConfiguringDreamweaver IMHO it's not worth the effort. Just use .tpl.html or something similar. You might want to change your delimiter: cf: http://smarty.php.net/faq.php#19 <?php $tpl =& new Smarty(); $tpl->left_delimiter = '<{'; $tpl->right_delimiter = '}>'; //etc... ?> -- Maximillian Von Schwanekamp http://www.neptunewebworks.com/