Re: heredoc usage [WAS: <OPTION]

From: Date: Fri, 27 Oct 2006 16:13:08 +0000
Subject: Re: heredoc usage [WAS: <OPTION]
References: 1 2 3 4 5 6 7 8 9  Groups: php.general 
Request: Send a blank email to php-general+get-243752@lists.php.net to get a copy of this message
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

« previous php.general (#243752) next »