View Source Pages.Css (Pages v0.2.0)
Constructs CSS selectors via Elixir data structures.
Link to this section Summary
Functions
When given a string, returns the string. Otherwise, accepts a keyword list and converts it into a string.
Link to this section Types
Link to this section Functions
When given a string, returns the string. Otherwise, accepts a keyword list and converts it into a string.
examples
Examples
iex> Pages.Css.query(test_role: "wheat", class: "math") "[test-role='wheat'][class='math']"
iex> Pages.Css.query(p: [test_role: "wheat", class: "math"]) "p[test-role='wheat'][class='math']"
iex> Pages.Css.query([[p: [id: "blue", data_favorite: true]], :div, [class: "class", test_role: "role"]]) "p[id='blue'][data-favorite] div [class='class'][test-role='role']"