Package org.webpieces.templatingdev.impl
Class DevTemplateCompileCallback
java.lang.Object
org.webpieces.templatingdev.impl.DevTemplateCompileCallback
- All Implemented Interfaces:
CompileCallback
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompiledGroovyClass(groovy.lang.GroovyClassLoader cl, org.codehaus.groovy.tools.GroovyClass groovyClass) voidrecordPath(String relativeUrlPath, String sourceLocation) voidrecordRouteId(String routeId, List<String> argNames, String sourceLocation) Allows the compiler to write a file out with all routeids from html files that can be used at startup time to validate all routes so we catch any errors on mistyped route ids before going to production (ie.
-
Constructor Details
-
DevTemplateCompileCallback
public DevTemplateCompileCallback()
-
-
Method Details
-
compiledGroovyClass
public void compiledGroovyClass(groovy.lang.GroovyClassLoader cl, org.codehaus.groovy.tools.GroovyClass groovyClass) - Specified by:
compiledGroovyClassin interfaceCompileCallback
-
recordRouteId
Description copied from interface:CompileCallbackAllows the compiler to write a file out with all routeids from html files that can be used at startup time to validate all routes so we catch any errors on mistyped route ids before going to production (ie. build time as your tests should be run then)- Specified by:
recordRouteIdin interfaceCompileCallback
-
recordPath
- Specified by:
recordPathin interfaceCompileCallback
-