Re: Re: Question about template systems

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

 



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.

To
speed up a site.

I'm curious about that one, how so?

-=-=-=-

And I've got a question.
Part of my page involves dynamically generated JavaScript.
The JavaScript will rarely change but it will change. By having php generate it, when my database is updated the js automatically will be too (yes I give the no-cache headers when sending the js. Actually I allow it to be cached for a day.)

Switching between php and JavaScript really sucks - moreso than switching between php and html as it is much easier to get lost in which language mode you are in.

Anyone know of a slick way to dynamically create javascript with php?

One thought I had - if there was an xml way to describe javascript and a filter to then create the actual javascript from the xml, I could create the js as xml and run it through the filter when sent to the browser.

--
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