CSSerpent.parse
You're seeing just the function
parse
, go back to CSSerpent module for more information.
Specs
parse(String.t(), any()) :: [CSSerpent.Rule.t()]
Parses CSS text from a string.
Example
iex> CSSerpent.parse("p { color: green }")
[
%CSSerpent.Rule{
identifier: nil,
props: [%{property: "color", value: "green"}],
raw: "p { color: green }",
rules: nil,
selector: "p",
source: nil,
value: nil
}
]