Re: [SMARTY] extensions

From: Date: Fri, 29 Apr 2005 18:13:30 +0000
Subject: Re: [SMARTY] extensions
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12554@lists.php.net to get a copy of this message
DWMX can interpret .tpl extension files as HTML out of the box (from what I remember). Check-out this link http://www.contactlensesprice.com/smarty/ to get it to work better with smarty tags... The only trouble I ran into is that DWMX did not recognize the xml file when i tried to follow the automated route of installing the custom tags. A quick-fix is to copy the contents of the xml file into the dwmx_program_directory/Configuration/ThirdPartyTags/Tags.xml file. Works as advertised. ~Cameron On Apr 29, 2005, at 10:11 AM, Maximillian Schwanekamp wrote:
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/ -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.smarty.general (#12554) next »