[template] Add bindTo() factory function