Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Compose on tag! values

From: joel:neely:fedex at: 15-Oct-2003 16:04

Hi, Andrew, Here's a QAD RYO... Andrew Martin wrote:
> What do people think about extending 'compose to work within tag! > values? For example: > > paragraph_colour: "green" > compose [ > <p style="Color: (paragraph_colour);"> > ] > which results in: > [ > <p style="Color: green;"> > ] >
One function definition... compose-tag: func [blk [block!]] [to-tag rejoin compose blk] ...after which...
>> paragraph_color: "green"
== "green"
>> compose-tag [{p } {style="Color:} (paragraph_color) {"}]
== <p style="Color:green"> -jn- -- ---------------------------------------------------------------------- Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446 Counting lines of code is to software development as counting bricks is to urban development.