
eu.appsatori.gaelyk.console.TemplateIncluder.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gaelyk-console Show documentation
Show all versions of gaelyk-console Show documentation
Gaelyk Console Plugin adds simple console which can execute groovlet like code.
The newest version!
package eu.appsatori.gaelyk.console
class TemplateIncluder {
private sout;
TemplateIncluder(sout){
this.sout = sout;
}
public String leftShift(String template){
def tpl = ConsoleTemplateRepository.load(template)
if(tpl){
ConsoleTemplateRenderer.render(sout, tpl.script, tpl.template)
} else {
sout << "Template $template should be included here!"
}
}
public void call(String template){
leftShift(template)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy