[xwiki-devs] inside {{html}} macro?
Hello fellow developers, do I have a way to know if I am inside an html macro or not? E.g. using a velocity variable? That would be really cool. thanks in advance. Paul
Hi Paul, What’s your use case? Thanks -Vincent On 4 Nov 2014 at 14:00:09, Paul Libbrecht ([email protected](mailto:[email protected])) wrote:
Hello fellow developers,
do I have a way to know if I am inside an html macro or not? E.g. using a velocity variable? That would be really cool.
thanks in advance.
Paul
I have an amount of velocity macros, to say the least, spread quite much around our code. ANd in some cases, putting {{html}} inside them actually… outputs that, in some cases not. However, I am trying to lower the amount of macros so that I would prefer to evaluate at the macro level if I have to escape or not. We have the "#verbatim_start()" and "#verbatim_end()" macros but they use a variable that is not always properly set, apparently. Hence knowing if I am inside would allow this to be safer. thanks Paul On 4 nov. 2014, at 14:58, "[email protected]" <[email protected]> wrote:
What’s your use case?
participants (2)
-
Paul Libbrecht -
vincent@massol.net