On Tue, Jun 26, 2001 at 01:06:06AM -0400, Brooklyn Linux Solutions CEO wrote:
> 
> I've given Filter and SSI a shot according to the perldocs.
> 
> It didn't work.  I stated to hhack on some of the problems, which first involved
> in the make install depositing them in the wrong diretory, and then they SSI 
> needed use Apache::Filter statements added.

have you tried HTML::Mason yet? it's got serious power, but you
can have some quickie modular sites up in a jiffy.

.../autohandler:
        <html><head><title><& SELF:title &></title></head>
        <body>
                <h1><& SELF:heading &></h1>
                <table><tr><td><& SELF:navbar &></td>
                <td><% $body %></td>
                </tr></table>
                <& SELF:footer &>
        </body>
        </html>

        <%method title>Welcome</%method>
        <%method heading>Welcome to our site</%method>
        <%method navbar><% &my_navbar() %></%method>
        <%method footer>It is now <% scalar localtime %> at our offices</%method>

        <%once>
                sub my_navbar {
                        ...
                }
        </%once>

        <%init>
                % my $body = $m->comp_next(); # set dependent variables first
        </%init>

.../search.md:
        <table><tr><td>Search:</td><td><& searchform,query=>$query &></td></tr>
        % if ($query) {
        <tr><td valign="top">Found:</td><td><% &list($query) %></td></tr>
        % }
        </table>

        <%method searchform><form .....></%method>
        <%method title>Search <% $recs %></title>
        <%method heading><& SELF:title &></heading>

        <%once>
                sub list {
                        ...
                }
        </%once>

        <%shared>
                my $recs = ... ? 'Products' : 'Services';
        </%shared>

        <%args>
                $query => undef
        </%args>

-- 
I figure: if a man's gonna gamble, may as well do it
without plowing.   -- Bama Dillert, "Some Came Running"

[EMAIL PROTECTED]
http://sourceforge.net/projects/newbiedoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!

Reply via email to