On 29 June 2011 17:28, Suraj Kurapati <[email protected]> wrote:
>
> Hello,
>
> I am trying to reassign the iconsdir attribute on the command-line
> so that it becomes an absolute path (to allow base64 embedding of
> icon images into the resulting HTML output).  But it doesn't work:
>
> # asciidoc --version
> asciidoc 8.6.5
>
> # echo -e '{asciidoc-confdir}\n{iconsdir}' > /tmp/foo.txt
>
> # asciidoc /tmp/foo.txt
> # grep etc /tmp/foo.html
> <div class="paragraph"><p>/etc/asciidoc
> # grep images /tmp/foo.html
> ./images/icons</p></div>
>
> # asciidoc -a 'iconsdir=asciidoc -a 'iconsdir={asciidoc-confdir}/{iconsdir}' 
> /tmp/foo.txt' /tmp/foo.txt
> # grep etc /tmp/foo.html
> <div class="paragraph"><p>/etc/asciidoc</p></div>
> # grep images /tmp/foo.html
> exit 1
>
> Am I misunderstanding the order of attribute evaluation?

No, I think you are misunderstanding that attributes are not
substituted in command line attribute definitions and attributes are
not recursively substituted.  So when iconsdir is substituted the
literal text '{asciidoc-confdir}/{iconsdir}' is substituted which
shows up as unsubstituted attributes which gets the line dropped.

You are just going to have to type the path.

Cheers
Lex

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to