add TemplateFunction java interface
needed as a java interface due to clojure not allowing for vararg parameters in definterface/defprotocol
This commit is contained in:
parent
0891fa5675
commit
d3eb6e844c
10
src/java/clj_jtwig/TemplateFunction.java
Normal file
10
src/java/clj_jtwig/TemplateFunction.java
Normal file
|
@ -0,0 +1,10 @@
|
|||
package clj_jtwig;
|
||||
|
||||
import com.lyncode.jtwig.functions.exceptions.FunctionException;
|
||||
|
||||
// this is defined in Java only because Clojure defprotocol/definterface don't allow
|
||||
// including method definitions with vararg parameters
|
||||
|
||||
public interface TemplateFunction {
|
||||
public abstract Object execute (Object... arguments) throws FunctionException;
|
||||
}
|
Reference in a new issue