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

List:       smarty-dev
Subject:    Re: [SMARTY-DEV] syntax error: expecting '=' after attribute name
From:       "Jason Sweat" <sweatjejm () mchsi ! com>
Date:       2003-12-10 12:20:37
[Download RAW message or body]

From: "Mark Rogers" <mark@quarella.co.uk>
> It's useful for much the same reason end of line comments are in most
> programming langauges - there's never really a situation where block
> comments cannot be used instead, but sometime's its simpler.
>
> If I'm trying to test the effect of a single Smarty element, for
example,
> it's quick to change {tag to {// tag, hit save and refresh the browser
to
> see the effect. Changing both { to {* and } to *} means a lot more
moving
> around the code and is therefore considerably slower, particularly
when you
> have a lot of length elements to move around.

I do thing like this:
{**}<pre style="text-align:left">{$test|@var_export:true}</pre>{**}

which I can turn on or off by adding a space before the first }, i.e. it
is commented all across the line with:
{** }<pre...

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

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

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