OptionalextraData: Record<string, unknown>The dialect this template renders into (§5.4). Every interpolated context value is escaped for it automatically, so an author never has to remember.
Defaults to 'none' rather than to a guess: this function also renders NON-filter fields
(UserSearchString, query transforms) where the value becomes search text, and escaping
those would corrupt the query rather than protect it. Filter call sites pass their real kind.
Render a scope template string with the supplied SearchContext. Returns the original string unchanged when
templateis null/empty. Returns the original string on render failure (logged via LogError) so a single bad template does not bring down a search.