/** * {snippet ...} */ public function macroOldSnippet($content) { $args = array(''); if ($snippet = LatteFilter::fetchToken($content)) { // [name [,]] [tag] $args[] = LatteFilter::formatString($snippet); } if ($content) { $args[] = LatteFilter::formatString($content); } return implode(', ', $args); }
/** * Formats {*link ...} parameters. */ private function formatLink($content) { return LatteFilter::formatString(LatteFilter::fetchToken($content)) . LatteFilter::formatArray($content, ', '); // destination [,] args }