<button> in 'ui template

This topic may shed some light HTML Template - use msg.payload
The third example in the ui-template sidebar help text shows how to add the function to the scope.