public function tag($key, $default = null)
{
if (!($values = $this->get($key, $default))) {
return '';
}
if (!is_array($values)) {
$values = [$values];
}
$html = '';
foreach ($this->config['tags'] as $tag) {
$class = __NAMESPACE__ . '\\Tags\\' . $tag;
foreach ($values as $value) {
$html .= $class::tag($key, $value);
}
}
return $html;
}