Fix passing jade-runtime to built templates. Add support for using
angular attributes as locals to the function template.