Re: Auto-generating HTML
| From: | Gary | Date: | Tue, 21 Sep 2010 09:47:04 +0000 |
| Subject: | Re: Auto-generating HTML | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308233@lists.php.net to get a copy of this message | ||
Andy McKenzie wrote:
> I have the feeling this is a stupid question, but I can't even find
> anything about it. Maybe I'm just not searching for the right things.
>
> Here's the problem. I'm writing a lot of pages, and I hate going in
> and out of PHP. At the same time, I want my HTML to be legible.
Without knowing *why* you "hate going in and out of php"...
You could use some kind of text preprocessor before putting the files on
the webserver. There's a nice example for html at
http://www.linuxjournal.com/article/5594
(starting about a third of the
way down the page). Nothing specific about php of course.
Just an alternative you might not have thought of.
--
Gary Please do NOT send me 'courtesy' replies off-list.
PHP 5.2.12 (cli) (built: Jan 14 2010 14:54:11)
1.7.7(0.230/5/3) 2010-08-31 09:58 Cygwin