[REBOL] RBML (was Stupid Parse Tricks)
From: john::schuhr::com at: 7-Jun-2001 11:30
Hi Ed.. well, I'm not really looking to "clone" CF, but I do find it
convenient and I wanna create something very similar. I'm with you on the
whole # thing. It does complicate things sometimes in CF. I don't really
intend to use it as the variable delimiter, but I just slapped it in
there.. this project is only about 30 minutes old (actual coding) :-)
Maybe something more like:
<table>
<rebout>
<tr>
<td>~loginname~</td>
<td>~logintime~</td>
</tr>
</rebout>
</table>
I kinda like what you presented as well, but suppose I wanted to do the
following:
<rebout query "qry-pmts">
<rebscript>
my-date: now/date
either (my-date > qry-pmts/user-due-date) [pmt-status:
late
][pmt-status: "due"]
</rebscript>
Your payment is ~pmt-status~.<br>
</rebout>
Granted, the current model doesn't support thing, but I'm looking into
recursive parsing so this is possible. Any character(s) could serve as
delimiters.. just have to find one that works :)
Thanks for the feedback Ed!
--John Schuhr