Re: [SMARTY-DEV] Feature request
| From: | Konstantin A. Pelepelin | Date: | Fri, 22 Aug 2003 07:59:02 +0000 |
| Subject: | Re: [SMARTY-DEV] Feature request | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1791@lists.php.net to get a copy of this message | ||
On 21 Aug 2003 09:01:22 -0500, Monte Ohrt <monte@ispi.net> wrote:
You already can supply filepaths relative to $template_dir, or was that not what you meant?I mean 'path to included template relative to including template'. This could have the same advantages for big template trees as having relative links in big HTML document tree: you can freely copy, move or rename subdirectories without need to change all links in contained templates. Konstantin A. Pelepelin
A request for next (2.7?) version: It'll be good to support relative filenames for includes in templates. This can be combined with last line in TODO file (no need to specify resource type in includes). For the purposes of backward compatibility it could be added as new resource type, i.e {include file='rel:relative/filename.html'}