|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jpabian Smarty Rookie
Joined: 17 Apr 2003 Posts: 6
|
Posted: Tue Aug 12, 2003 4:39 pm Post subject: html annotation of include files |
|
|
at one time i thought smarty would annotate in html comment form the include files loaded
ie
<!-- include file=header.tpl -->
<table border>
<!-- end include file -->
ive RTFM.. but maybe not so well
thanks in advance
jef |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Aug 12, 2003 4:48 pm Post subject: |
|
|
i think you have to grow your own:
put this in your templates:
Code: |
<!-- include file={$smarty.template} -->
...
<!-- end include file={$smarty.template} -->
|
{$smarty.template} will be replaced by the name of the current template then. |
|
Back to top |
|
jpabian Smarty Rookie
Joined: 17 Apr 2003 Posts: 6
|
Posted: Tue Aug 12, 2003 6:22 pm Post subject: |
|
|
thanks.. and thats as easy as it gets..
jeff |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|