VV::css()
+Include a CSS file into a page which will be automatically minified and inlined.
+Parameters
+string
+ $pathname
+ Path to a CSS stylehseet file.
+Appending ".css" to the filename is optional. If omitted, the extension is infered.
+bool
+ $relative
+ Flag which when set to:
+-
+
-
+
true
+Will make
+$pathname
look for a CSS file relative toroot_path
.
+ -
+
false
+Will make
+$pathname
look for a CSS file relative to the root of the whole filesystem.
+
Return value
+string
+ Returns a minified version of the included stylesheet as a string. If a stylesheet can not be found at $pathname
, an empty string is returned.
+
Examples
+Importing a stylesheet
+In this example we're importing a stylesheet from /public/assets/css/style.css
relative from root_path
.