Package org.webpieces.templatingdev.api
Interface CompileCallback
- All Known Implementing Classes:
DevTemplateCompileCallback
public interface CompileCallback
-
Method Summary
Modifier and TypeMethodDescriptionvoidcompiledGroovyClass(groovy.lang.GroovyClassLoader groovyCl, org.codehaus.groovy.tools.GroovyClass clazz) 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.
-
Method Details
-
compiledGroovyClass
void compiledGroovyClass(groovy.lang.GroovyClassLoader groovyCl, org.codehaus.groovy.tools.GroovyClass clazz) -
recordRouteId
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. build time as your tests should be run then)- Parameters:
routeId-argNames-sourceLocation-
-
recordPath
-