CSSerpent.parse

You're seeing just the function parse, go back to CSSerpent module for more information.
Link to this function

parse(body, source \\ nil)

View Source

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
  }
]