Skip to content

Commit

Permalink
Fixes MarkupViewTemplateEngine compileStatic property initializat…
Browse files Browse the repository at this point in the history
…ion error

Closes gh-24
  • Loading branch information
rainboyan committed Oct 15, 2024
1 parent d15cedb commit f083a24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ComponentViewTemplateEngine extends ResolvableGroovyTemplateEngine {

ComponentViewTemplateEngine(ComponentViewConfiguration config = new ComponentViewConfiguration(), ClassLoader classLoader = Thread.currentThread().contextClassLoader) {
super(config, classLoader)
this.compileStatic = compileStatic
this.compileStatic = config.compileStatic
innerEngine = new MarkupTemplateEngine(classLoader, config, new TemplateResolver() {
@Override
void configure(ClassLoader templateClassLoader, TemplateConfiguration configuration) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class MarkupViewTemplateEngine extends ResolvableGroovyTemplateEngine {

MarkupViewTemplateEngine(MarkupViewConfiguration config = new MarkupViewConfiguration(), ClassLoader classLoader = Thread.currentThread().contextClassLoader) {
super(config, classLoader)
this.compileStatic = compileStatic
this.compileStatic = config.compileStatic
innerEngine = new MarkupTemplateEngine(classLoader, config, new TemplateResolver() {
@Override
void configure(ClassLoader templateClassLoader, TemplateConfiguration configuration) {
Expand Down

0 comments on commit f083a24

Please sign in to comment.