You have this information in the TransformationContext by walking the XDOM upward and
finding a location metadata
Thanks
-Vincent
On 13 Apr 2016, at 11:21, abtv
<andreybutov(a)mail.ru> wrote:
I extended AbstractMacro with my class. When I execute macro with `execute`
function I don't have access to the space name on which the macro is called.
I would like to customize output depending on the current space. All I need
is just space name as a string. How to get space name inside `execute`
function? I suppose it can be some dependency injection, but I'm don't know
what to use.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/How-to-get-space-name-s-when-I-execute-ma…