nimbusex v0.4.0 Nimbusex.HTML.Stylesheet
Module adds stylesheet helper
Summary
Functions
Render a stylesheet link tag. By default it accepts styles href and options. You can modify the attributes by passing a list as the last argument. The ‘media’ attribute will always be present and defaults to “screen”, so you must explicitly set it to “other”
Functions
Render a stylesheet link tag. By default it accepts styles href and options. You can modify the attributes by passing a list as the last argument. The ‘media’ attribute will always be present and defaults to “screen”, so you must explicitly set it to “other”.
Source href can be url or static_path to you stylesheets source.
Examples:
iex> stylesheet(“app.css”) ““
iex> stylesheet(“app.css”, media: “all”) ““
iex> stylesheet(“http://path.to.source/app.css”, media: “all”) ““
iex> stylesheet(static_path(@conn, “/css/app.css”), medial: “all”) ““