[nycphp-talk] heredoc string formatting question
Daniel Convissor
danielc at analysisandsolutions.com
Sat Aug 12 10:13:58 EDT 2006
On Thu, Aug 10, 2006 at 06:07:17PM -0400, Cliff Hirsch wrote:
> Thanks to all -- excellent suggestions all around. In summary, heredoc
> seems to be a waste. Too much room for error with a finicky editor and
> no major added benefit.
Huh? The pure PHP approach via heredoc or plain old quoted
syntax is the straight ahead way to go. If you want the template
separated from the logic, put it in an include file.
What's the room for error? The editor changes the line endings from
CRLF to LF or vice versa? BFD. All email programs can read either.
Inadvertently indenting the heredoc's endpoint? I've never had that
happen in all my seven years of using PHP.
Template engines and languages are what's complex, finicky and add
notable processing overhead.
This thread is talking about cutting butter with a chainsaw.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
More information about the talk
mailing list