joinTo should filter out templates based on a regex or callable function