configurable template transformer