Extends
lithium\core\StaticObjectSource
protected static function _compileStack($stack) {
$result = null;
foreach (array_reverse($stack) as $fragment) {
if ($result) {
$result = str_replace('{:args}', ltrim($result, '/'), $fragment);
continue;
}
$result = $fragment;
}
return $result;
}