expose whole Template object
add lambda support