Re: annotation question

Brandon Sussman <[email protected]>
Newsgroups gmane.comp.kde.devel.quanta.user
Message-ID <[email protected]>
On Sunday 25 May 2008 14:37:12 Andras Mantia wrote:
> On Wednesday 21 May 2008, Brandon Sussman wrote:
> > In smarty ( .tpl files) I have annotations that look like:
> > -snippet----------------------------------------------
> >           {else}
> > {* @annotation yadda yadda whatever *}
> >             {if .... }
> > -/snippet---------------------------------------------
> >
> > The annotation tab doesn't show them.
> >
> > What am I doing wrong?
>
> As I see (from the code ;)), annotations must be either between
> <!-- --> (if the DTEP is xml based)
> or
> /* */ (for other DTEPs).
>
> Can't you use one of the above notations for comments in smarty?
>
Thanks - yes - actually {* <-- @annotation comment --> *} works.

Not that I like Smarty but sometimes I am stuck with it :)

It looks darned silly but the {* *} is needed since smarty comments are NOT 
displayed in the final output of the template, unlike <!-- HTML comments -->. 
{* *} is useful for making internal comments in templates ;-)



 


-- 
------------------------------------------------------------------------
|/\/\ /\/\ /\/\   Webster Ridge Farm       |   http://WebsterRidge.com |
|\oo/ \--/ \--/   Brandon and Mary Sussman |             (603)648-2595 |
|=\/= =\/= =\/=   1482 Pleasant St.        |     N 43.32558 W 71.70835 |
| Sleep Well...   Webster, NH, 03303-7613  |           19TBJ8040800540 |
------------------------------------------------------------------------
|Lamb, Poultry, Eggs, Quilts and Web Sites-Think Locally, Buy Locally! |
------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.