Re: [PHP] Close enough to Friday...

[email protected] (tamouse mailing lists)
Newsgroups php.general
Message-ID <CAHUC_t8rHkbpBOm5RVFu8rVZHVuKFVcZpc3jXovp6qwav9Ld+w@mail.gmail.com>
On Thu, Feb 28, 2013 at 7:50 PM, Adam Richardson <[email protected]> wrote:
> Just wanted to toss this out as something I quick developed in case it
> could help others:
> https://github.com/AdamJonR/PreHP
>
> Essentially, I just wanted a quick pre-processor that would work with
> PHP so I could limit some of the processing done at runtime. As
> opposed to C macros, I wanted to design it so that files could/should
> be developed to be valid html/php without the preprocessor. The
> preprocessor merely speeds the performance. The example for templating
> could be redone to use includes and then replace those with the
> inlined content, I just prefer to work with skeleton HTML so I can
> validate the XHTML as I go within the static file rather than having
> to check the content on a test server.
>
> The preprocessor is dumb (for now, I'm not parsing the PHP to ensure
> the comments are not contained within strings, etc.), but this
> shouldn't pose an issue for most situations.
>
> Anyways, I just whipped this up so I could ditch Dreamweaver Templates
> (which I used so the templating happened prior to runtime, too), as
> I'm trying to save some money and I don't want to upgrade to the next
> version :)
>
> Happy Friday!
>
> Adam
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Congratulations on ditching the Dreamweaver Templates!

Now, as to preprocessing: how does this benchmark out? Have you
noticed a significant different in processing time, memory usage, disk
usage, etc?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.