DescriptionTo make it easier to reuse the HTML attribute sanitizer, I moved
all the code in TemplateCompiler that dealt with attribute values
into a separate class: HtmlAttributeRewriter.
I created HtmlAttributeRewriter by doing (svn cp ...) so you should
be able to see the diffs between the two files which should be more
instructive than reading HtmlAttributeRewriter line by line.
I also reorganized the code that generates expressions from strings
and dynamic bits, since that's critical to generating code from
templates. See JsConcatenator.
Also simplified CssRewriter -- it requires a PluginEnvironment but
nothing else from PluginMeta.
Submitted @3667
Patch Set 1 #
Total comments: 2
Patch Set 2 : Refactor TemplateCompiler to make it easier to reuse the attribute sanitizer #MessagesTotal messages: 3
|