On Wed, Nov 02, 2005 at 09:39:07AM +0000, Ceri Davies wrote:
> On Tue, Nov 01, 2005 at 02:20:51PM -0800, Gary Kline wrote:
> 
> >     Let's say we request people submit only their sh script
> >     (to start).   What would the format need to be so that 
> >     a script could parse email and auto-HTML the script?'
> 
>  #!/bin/sh --
>  portinstall squirrelmail
> 
> Did I win a biscuit? :)
> 
> Ceri


        Would some  gold stars do? :)

        evolution take ASCII and iso.8859-15 text and turns it into
        HTML too (I think; don't *quote me*).  I have a C prog that 
        I've been using privingly for 11 years that does this and 
        more, but what what I'm thinkg of is a script that would
        take a posted script and using the KEYWORDS of, say:

        "CATEORY: foo
        "FUNCTION: it_does_this
        "OPTIONS: can_do_this_or_that"

        BEGINSCRIPT
        !#/bin/sh
        echo "hello world"
        ENDSCRIPT

        and generate am HTML file like:

        <HTML>
        <BODY>
        <! this belongs in category "foo" -->

        <CENTER> Function</CENTER>
        This script does: "it does this"

        <P>

        <CENTER> Options</CENTER>
        This script "can do this or that" using flags "-a" "-b" "-c"

        <P>
        <PRE>

        !#/bin/sh
        echo "hello world"

        </PRE>
        <P>
        </BODY>
        </HTML>

        In most things I agree with the KISS philosophy:
        "Keep it simple, Sir".

        This is my off-the-top-of-my-head idea; I'm sure most of you
        guys are better at shell and-or HTML hacking and have better
        ideas.

        gary

-- 
   Gary Kline     [EMAIL PROTECTED]   www.thought.org     Public service Unix

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to