[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] annotation question
From:       Brandon Sussman <bos () websterridge ! com>
Date:       2008-05-25 19:36:35
Message-ID: 200805251536.35427.bos () websterridge ! com
[Download RAW message or body]

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! |
------------------------------------------------------------------------
_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic