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.


-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to