Re: Objective opinion
| From: | Brian E . Lozier | Date: | Thu, 21 Mar 2002 11:21:45 +0000 |
| Subject: | Re: Objective opinion | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3170@lists.php.net to get a copy of this message | ||
In my case, I provide ultra-basic black & white HTML template pages. The designer can then look
at what I've
done, and see what happens (such as a section loops through table rows). I don't have any very
complex
templates, though, so maybe that's why. I generally just use straight variables, sections with
numeric
arrays, and dot-notation for associative arrays. When they see something like this, they know
what's going
on:
<table>
<tr>
<td>Name</td>
<td>Phone Number</td>
</tr>
<!-- Begin Table Rows -->
{section blah=blah blah=blah}
<tr>
<td>{$Name}</td>
<td>{$Phone}</td>
</tr>
{/section}
<!-- End Table Rows -->
</table>
Since they have their design all figured out (and we all agreed on what data we would be displaying,
right?
:P), all they do is copy it into here and everything works as long as they make sure to get the tags
right.
And if they don't, both they and I have a backup of the original simple templates that we can
work off - if
they just can't figure something out, I can help, no big deal.
Brian
3/21/02 12:04:33 AM, Bertrand DUNOGIER <bdunogier@wanadoo.fr> wrote:
>AL> It's not very elegant as designer might change his mind and do not
>AL> remember to advice developer about it. Not very elegant I think.
>I Will NEVER let a designer write template code in my place. Maybe, if
>they know what a function is and what a loop is, they can add
>{section} and {if} along with comments, so that we have less search
>job to do, but they will certainly not write the variable names and
>the full algortihm.
>
>--
>Bertrand mailto:bdunogier@wanadoo.fr
>
>
>
>---
>You are currently subscribed to smarty as: brian@massassi.net
>To unsubscribe send a blank email to $subst('Email.Unsub')
>Visit Smarty's homepage at
>http://www.phpinsider.com/php/code/Smarty/
>
>
Brian