public static function template(
        $template,
        $parameters,
        $startChar = '%',
        $endChar = '%'
    ) {
        foreach ($parameters as $key => $value) {
            $template = str_replace($startChar . $key . $endChar, $value, $template);
        }
        return $template;
    }