Am 2016-04-20 um 08:35 schrieb Petar Tahchiev:
Hi Michael,

I had a chat with Herve last night, and he mentioned this is actually not
possible. If one wants to use velocity macros one must put it in the site
(if you put them in your theme it will not work). Which is a shame, as I
have a project with 50 submodules and each module requires #myMacro() just
once, so I was hoping to have it declared once in the site.vm in the theme,
and then use it in each of those modules.

Seriously? We now have #parse() support. That should actually parse your
subtemplate and make the macro available. Have you tried that? Templates
which are not skins are deprecated though and have limited support. They
will be removed in 2.0.

Michael

2016-04-20 8:31 GMT+02:00 Michael Osipov <[email protected]>:

Am 2016-04-19 um 20:26 schrieb Petar Tahchiev:

Hello,

I'm asking this question here, as I don't really see the answer in the
documentation or anywhere else on the internet. If you have a website
document: src/site/asciidoc/index.adoc.vm and you use a velocity macro in
it:

# myMacro()


I know doxia will process the velocity and it works fine, but will it also
process the macro? I doesn't work for me, and I'm not sure if it is
implemented at all. I'm trying to debug it now, but I can't seem to find
any setting regarding this.


Hervé and me have been working at Doxia and the rest lately a lot. Do you
think you could create a sample project for that? I would take a look at it.

Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]







---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to