RE: Smarty and speed
| From: | Werner Hülsmeier | Date: | Mon, 10 Dec 2001 08:55:13 +0000 |
| Subject: | RE: Smarty and speed | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2233@lists.php.net to get a copy of this message | ||
Hallo Monte,
> There's a misconception... of course your designers have to code display
logic!
> One goal behind Smarty was to separate the content from the layout. The
goal was
> never to keep "logic" entirely out of the template language, and that
really
> isn't feasible. The designers _have_ to do some logic to have the
flexability
> they need to design a page however they wish. How would a designer
alternate
> table colors without some sort of IF logic? They would have to go back to
the
With Peter's table tag. Combined with something like themes ?!
But of course this "high level tags" are extremely time consuming.
The way between is not a technical but organisational one.
Programmers and designers can work together on a set of
prototype templates for tables. After that this one's are only
included and injected with the variables needed.
So the "misconception" can be reduced to some core templates.
Thinking about the world without Smarty:
What are the alternatives?
Pure HTML, designers learn PHP, "static" templating ......
I don't see a realistic one.
"Wash my skin, but don't make me wet"
is not a good attitude, even for designers
;-)
Werner