Fixed small bug with DefaultNodeFactory.
This commit is contained in:
parent
4800ceb34f
commit
d5e75ef4a6
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
package com.jessebrault.site
|
||||||
|
---
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>$pageTitle</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>$pageTitle</h1>
|
||||||
|
<h2>$url</h2>
|
||||||
|
<p>$greeting</p>
|
||||||
|
<section>
|
||||||
|
<%= biographyText.render() %>
|
||||||
|
</section>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -41,6 +41,7 @@ public class DefaultNodeFactory implements NodeFactory {
|
|||||||
ClosureValueNode.class,
|
ClosureValueNode.class,
|
||||||
ComponentValueNode.class,
|
ComponentValueNode.class,
|
||||||
PlainScriptletNode.class,
|
PlainScriptletNode.class,
|
||||||
|
EqualsScriptletNode.class,
|
||||||
DollarScriptletNode.class,
|
DollarScriptletNode.class,
|
||||||
DollarReferenceNode.class
|
DollarReferenceNode.class
|
||||||
);
|
);
|
||||||
|
@ -3,11 +3,13 @@ package groowt.view.component.web.ast.node;
|
|||||||
import groowt.util.di.annotation.Given;
|
import groowt.util.di.annotation.Given;
|
||||||
import groowt.view.component.web.ast.extension.NodeExtensionContainer;
|
import groowt.view.component.web.ast.extension.NodeExtensionContainer;
|
||||||
import groowt.view.component.web.util.TokenRange;
|
import groowt.view.component.web.util.TokenRange;
|
||||||
|
import jakarta.inject.Inject;
|
||||||
|
|
||||||
public class EqualsScriptletNode extends AbstractLeafNode implements GroovyBodyNode {
|
public class EqualsScriptletNode extends AbstractLeafNode implements GroovyBodyNode {
|
||||||
|
|
||||||
private final String groovyCode;
|
private final String groovyCode;
|
||||||
|
|
||||||
|
@Inject
|
||||||
public EqualsScriptletNode(
|
public EqualsScriptletNode(
|
||||||
NodeExtensionContainer extensionContainer,
|
NodeExtensionContainer extensionContainer,
|
||||||
@Given TokenRange tokenRange,
|
@Given TokenRange tokenRange,
|
||||||
|
@ -62,6 +62,7 @@ class ConvertToGroovy implements Callable<Integer> {
|
|||||||
def name = target.name.takeBefore('.wvc')
|
def name = target.name.takeBefore('.wvc')
|
||||||
try {
|
try {
|
||||||
def compileUnit = new DefaultWebViewComponentTemplateCompileUnit(
|
def compileUnit = new DefaultWebViewComponentTemplateCompileUnit(
|
||||||
|
target.toString(),
|
||||||
AnonymousWebViewComponent,
|
AnonymousWebViewComponent,
|
||||||
ComponentTemplateSource.of(target),
|
ComponentTemplateSource.of(target),
|
||||||
AnonymousWebViewComponent.packageName
|
AnonymousWebViewComponent.packageName
|
||||||
|
Loading…
Reference in New Issue
Block a user