Esempio n. 1
0
function condition(array $attributes, array $children) : string
{
    return sprintf('<!--[if %s]>%s<![endif]-->', $children[0], renderChildren(\array_slice($children, 1)));
}
Esempio n. 2
0
function fake(array $attributes, $children) : string
{
    return sprintf('<fake%s>%s</fake>', renderAttributes($attributes), renderChildren($children));
}
Esempio n. 3
0
function comment(array $attributes, array $children) : string
{
    return \sprintf('<!-- %s -->', renderChildren($children));
}