Re: Template Question
| From: | rush | Date: | Sat, 14 Aug 2004 18:04:06 +0000 |
| Subject: | Re: Template Question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193822@lists.php.net to get a copy of this message | ||
"Jonathan Haddad" <jon@oldirtyhaddad.com> wrote in message
news:F463B8D8-ED3C-11D8-A9C3-000393BB7FCE@oldirtyhaddad.com...
eval takes a string and evaluates it as PHP, which I also thought would
work. But this is a file of mixed PHP and HTML.
I've designed it this way because I work with guys that are dreamweaver
crazy and want to do all their layout there.
Maybe I should parse the file, and eval() the PHP and echoing the HTML?
Or is there a better way?
well, maybe you could search for php opening and closing tags (<?) and
evaluating only what you find between them and echoing, but I am not sure
what would happen if two such snippets needed to share the context.
Anyway, are you sure this is a good idea? templates are about separating
code and html, and most template systems I know are dreamweaver friendly.
rush
--
http://www.templatetamer.com/