Gets the default strategy to use when not defined by the user.
string $filename The template "filename":
string The default strategy to use for the template
public function getDefaultStrategy($filename) {
// disable string callables to avoid calling a function named html or js,
// or any other upcoming escaping strategy
if (!is_string($this->defaultStrategy) && is_callable($this->defaultStrategy)) {
return call_user_func($this->defaultStrategy, $filename);
}
return $this->defaultStrategy;
}