Re: [Boost-docs] [Gaea] Named optional attributes

Subject: Re: [Boost-docs] [Gaea] Named optional attributes
From: Joel de Guzman (joel_at_[hidden])
Date: 2011-10-31 12:16:19


On 10/30/2011 9:39 PM, Matias Capeletto wrote:
> Hi,
>
> I was trying to see how some of the current Quickbook constructs will
> look in the IR Joel is proposing based on Gaea (
> http://pastebin.com/FBdpSsS8 ).
> There are some things that are not possible with that definition and
> seems to be necessary to represent complete documents.
>>From Quickbook docs: "From version 1.5, you can also use DocBook
> imagedata attributes"
>
> [$image.jpg [width 200in] [height 200in]]
>
> I think it will be a good idea to support this kind of named optional
> attributes directly in Gaea. If we augment the definition of templates
> like:
>
> [def [$ path [.width] [.height]]
> ... [path]
> ... [if [defined [width]] [ ...[width]... ] [ ... ]] // Or something
> like this...
> ]
>
> We can then use them like:
>
> [$image.jpg [.width 200in][.height 200in]]
>
> This is very close to the current [$ ...] and even the main argument
> can remain unwrapped in []s, following current practice.
>
[snip]

I think this makes perfect sense. I'll see how I can incorporate
these.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://boost-spirit.com

This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:41 UTC