reports, template/library proposal -- LAML

Phil Longstaff plongstaff at rogers.com
Fri Apr 16 14:22:34 EDT 2010


Don't forget to include the list.

On Fri, 2010-04-16 at 21:12 +0300, Laimonas Vėbra wrote:
> Phil Longstaff wrote:
> > On Fri, 2010-04-16 at 20:03 +0300, Laimonas Vėbra wrote:
> >> Phil Longstaff wrote:
> >>
> >>> I would suggest looking through the tutorial.
> >>> http://www.cs.aau.dk/~normark/scheme/distribution/laml/tutorial/index.html
> >>
> >> Looking for WHAT?
> >> How to elegantly write structured, validating html report/content in
> >> pure scheme...?
> >
> > Looking for what laml is and what it can do.
> 
> And what it can't do?
> You have read it, sure? If you read it, you should have noticed, that 
> LAML is a big project, full of various stuff. For the reporting we only 
> need part of the XHTML mirroring:
> 
> 
> I prefer:
> 
> (p "A simpler table with tr:")
> (table 'border "1"
>         'class "coytable"
>             (caption (em "Table caption"))
>             (tr 'css:vertical-align "top"
>                 (td "1") (td "2"))
> 	   (tr (td "3") (td 'css:width opt-logo-width "4"))
> )
> 
> 
> instead of:
> 
> <table class="coytable" border="0" width="100%">
> <tr valign="top" style="vertical-align: top">
>    <?scm (if (access? opt-logofile R_OK) (begin ?>
>      <td align="left">
>        <img align="left" src="<?scm:d opt-logofile ?>" alt="logo" 
> class="logo"
>          <?scm (if opt-logo-width (begin ?>
>            style="width: <?scm:d opt-logo-width ?>"
>          <?scm )) ?>
>          >
>      </td>
>    <?scm )) ?>
> 
> 
> (rough clearness comparison)
> 
> Of course, i could be wrong in thinking what the other schemers would 
> prefer...




More information about the gnucash-devel mailing list