Lee ♫ Goddard > Blog-Simple-HTMLOnly > blog.cgi

Download:
Blog-Simple-HTMLOnly-0.05.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

blog.cgi - simple blog example

USE ^

        blog.cgi                                - display the current blog
        blog.cgi?x                              - where 'x' is anything: add a blog
        blog.cgi?all=1&author=y     - display all the blogs of author 'y'
        blog.cgi?date=x&author=y        - where 'x' and 'y' are a timestamp
                                                                  and an author name: shows that blog
         ...&template=false         - do not use the template

If the template is used, it should be HTML with a comment <!-- insert ---> where the calendar is to go.

Copyright (C) 2003, Lee Goddard (lgoddard -at- cpan -dot- org) All Rights Reserved. Available under the same terms as Perl.

HTML TEMPLATE ^

The template isn't used by this script; instead SSI is used to pull this script's output into an SHTML page. Note the template=false in the query string.

        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
        <html>
        <head>
                <title>Blah Blah Blah</title>
        </head>
        <body>

        <!--#include virtual="/cgi-bin/blog.cgi?template=false" -->

        <!--#include virtual="/cgi-bin/blogcal.cgi?template=false" -->

        </body>
        </html>
syntax highlighting: