in reply to HTML INCLUDES

Hmmm, you seem to be reinventing the wheel, especially if you are using perl for this. Check out HTML::Template -- it does this plus more for you already.

If you want to have includes that aren't path specific, look into to using INC => [] in the constructor.

Also, if you are looking to componentize your websize, take a peek at Apache::Pagekit -- it uses HTML::Template underneither, but creates a nice framework for you.

cheers.

Replies are listed 'Best First'.
Re: Re: HTML INCLUDES
by astanley (Beadle) on Apr 30, 2001 at 19:08 UTC
    I think you missed his reason for not using extra modules...his security "force" will not allow his team to add anything to the server (IE: Perl Modules). See the slycer's post for an answer, however. It should do the trick for you. You may want to try adding a global and/or case-insensitive flag to the regex just in case.

    -Adam Stanley
    Nethosters, Inc.