dynamic blocks

[email protected] (Ludovico Magnocavallo)
Newsgroups php.template
Message-ID <[email protected]>
A quick thought on dynamic blocks.

Andrei says on http://va.php.net/~andrei/tpl-engine.txt

 {dynamic: <name>}
	...
 {/dynamic}
	- defines a dynamic block that can be optionally parsed or looped

I prefer the FastTemplate syntax, eg <!-- BEGIN dynamic block: myblock -->
since dynamic templates are often used for row templates inside a table,
and the HTML-comment syntax allows the designer to work on a "clean"
table, with no extra-characters (such as {dynamic: name}) that are not
part of a row or cell and get rendered in random positions by the browser.

L.


-- 
----------------------------------------------------
             Ludovico Magnocavallo MCP
  Sumatra Solutions / CTI and Internet Development
       via V. Bellini 4, 20122 Milano, Italy
             [email protected]
----------------------------------------------------
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.