Re: [Gaea] Named optional attributes
Joel de Guzman <[email protected]>
| Newsgroups | gmane.comp.lib.boost.documentation |
|---|---|
| Message-ID | <[email protected]> |
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