Commit 3a613e85 by Carsten Brandt

allow setting css rel explicitly

used e.g. for less client side compiling
parent 91998d03
......@@ -191,7 +191,9 @@ class BaseHtml
*/
public static function cssFile($url, $options = [])
{
$options['rel'] = 'stylesheet';
if (!isset($options['rel'])) {
$options['rel'] = 'stylesheet';
}
$options['href'] = static::url($url);
return static::tag('link', '', $options);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment