Re: heredoc usage [WAS: <OPTION]

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

 



At 1:09 PM -0400 10/26/06, Robert Cummings wrote:
On Thu, 2006-10-26 at 11:24 -0400, tedd wrote:
 At 1:04 AM -0700 10/26/06, Paul Novitski wrote:
 >At 10/25/2006 11:24 PM, Robert Cummings wrote:
 >>I use a tag based template system, there's no PHP in my content so my
 >>content files for the most part just look like more HTML.
 >
 >This is a different topic, but also one close to my heart.  Yes, I
 >too use my own selector-based templating system.  It does allow me
 >to embed PHP variables into the template if I want, but the primary
 >merge between plain HTML template and MySQL content happens through
 >CSS-style selectors.

 I also embed php variables inside css -- it gives it more functionality.

I embed them in the CSS template, which is compiled to a CSS stylesheet
file and so the variables become static after compilation. This is
useful if you're not determining values by any PHP logic, since then
your stylesheet can be served up as a static document while retaining
the flexibility of using variably defined values to generate the
stylesheet.

Cheers,
Rob.

Rob:

I think that's the only way it can be done except doing things with Ajax. If so, then styesheets can become "dynamic" -- but when served, they are static.

For me, I just provide a header at the beginning of the css file and a .htaccess rule to treat css suffix files as php documents.

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

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