Re: Re: Question about template systems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-03-04 at 18:01 -0800, Michael A. Peters wrote:
> Robert Cummings wrote:
> > On Wed, 2009-03-04 at 15:21 -0800, Michael A. Peters wrote:
> >> Robert Cummings wrote:
> >>
> >>> To punt what is repeated over and over during runtime to a single
> >>> compilation phase when building the template target. To simplify the use
> >>> of parameters so that they can be used in arbitrary order with default
> >>> values. To allow for the encapsulation of complex content in tag format
> >>> that benefits from building at compile time and from being encapsulated
> >>> in custom tags that integrate well with the rest of the HTML body.
> >>
> >> I can't speak to those (and I have no opinion on template systems having 
> >> never used any of them.
> >>
> >>> To
> >>> remove the necessaity of constantly moving in and out of PHP tags.
> >> php does not require that you constantly move in and out of PHP tags.
> >> There's at least one and possibly several pure php solutions that allow 
> >> one to never write a line of html but get beautiful dynamic html output.
> > 
> > It doesn't require, but if you're not moving between them, then you're
> > probably echoing your HTML, and that can be a maintenance nightmare.
> 
> echoing html involves mixing html and php.
> Using an XML class (like DOMDocument) to build the document does not.

So you punt the entire rendering of the HTML content to run-time
execution one node at a time?

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux