Implement way of passing Functions to the Xslate constructor