[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile & Sablotron

From: Christopher Cramer
Subject: Re: Guile & Sablotron
Date: Wed, 17 Mar 2004 18:02:43 -0600
User-agent: Mutt/1.2.5i

On Tue, Mar 09, 2004 at 09:32:05AM -0800, Brian S McQueen wrote:
> Guile & Sablotron!  Who is interested?  I need to discuss this with
> someone!  TTN!  You do a lot of web work.  Using a template engine is the
> way to go for handling the presentation of data.  The programs can produce
> generic data of this sort:
> <sales>
>         <division id="North">
>                 <revenue>10</revenue>
>                 <growth>9</growth>
>                 <bonus>7</bonus>
>         </division>
>         <division id="South">
>                 <revenue>4</revenue>
>                 <growth>3</growth>
>                 <bonus>4</bonus>
>         </division>
>         <division id="West">
>                 <revenue>6</revenue>
>                 <growth>-1.5</growth>
>                 <bonus>2</bonus>
>         </division>
> </sales>

I'm pretty much sold on the idea of integrating templates into Recluse.
But that sort of output seems a little less elegant than I would like.
You'd end up with display or format calls outputting XML, which is an
improvement over outputting HTML, but I wonder if instead of outputting
XML we could just return a list.

Something like:

        (division (id "North")
                (revenue 10)
                (growth 9)
                (bonus 7))

        (division (id "South")
                (revenue 4)
                (growth 3)
                (bonus 4)))

I think being able to write the whole thing using just sql->list, map,
append, etc. (or even backquotes) would make it a lot easier.

I suppose there might be interoperability benefits to using XML though.
Maybe we should have some ->xml and xml-> procedures.

Christopher Cramer <address@hidden> <>
In politics you have to understand not where the voters are when a poll
is taken, but where they are likely to end up on Election Day.
-- Rep. Tom Davis, former NRCC Chairman

reply via email to

[Prev in Thread] Current Thread [Next in Thread]