Changing templateUrl by template for more flexible directive