[xwiki-devs] [Proposal] Rendering: Move MacroContentParser.getCurrentSyntax() to MacroTransformationContext.getCurrentSyntax()
Hi dev, I've just noticed that we have a MacroContentParser.getCurrentSyntax() API. However there's a more general need of being able to get the current syntax even without using a MacroContentParser (I have this need now in some code). Thus I'm proposing to deprecate (remove?) the MacroContentParser.getCurrentSyntax() method and add a new MacroTransformationContext.getCurrentSyntax() WDYT? Thanks -Vincent
+1 On Sat, Jan 7, 2012 at 1:16 PM, Vincent Massol <[email protected]> wrote:
Hi dev,
I've just noticed that we have a MacroContentParser.getCurrentSyntax() API.
However there's a more general need of being able to get the current syntax even without using a MacroContentParser (I have this need now in some code).
Thus I'm proposing to deprecate (remove?) the MacroContentParser.getCurrentSyntax() method and add a new MacroTransformationContext.getCurrentSyntax()
WDYT?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
On 01/07/2012 07:16 AM, Vincent Massol wrote:
Hi dev,
I've just noticed that we have a MacroContentParser.getCurrentSyntax() API.
However there's a more general need of being able to get the current syntax even without using a MacroContentParser (I have this need now in some code).
Thus I'm proposing to deprecate (remove?) the MacroContentParser.getCurrentSyntax() method and add a new MacroTransformationContext.getCurrentSyntax()
WDYT?
+0. I'd like something even more generic, not related to transformations. Do we have a ParsingContext? -- Sergiu Dumitriu http://purl.org/net/sergiu/
+0 Thanks, Marius On Sat, Jan 7, 2012 at 2:16 PM, Vincent Massol <[email protected]> wrote:
Hi dev,
I've just noticed that we have a MacroContentParser.getCurrentSyntax() API.
However there's a more general need of being able to get the current syntax even without using a MacroContentParser (I have this need now in some code).
Thus I'm proposing to deprecate (remove?) the MacroContentParser.getCurrentSyntax() method and add a new MacroTransformationContext.getCurrentSyntax()
WDYT?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (4)
-
Marius Dumitru Florea -
Sergiu Dumitriu -
Thomas Mortagne -
Vincent Massol