Skip to content

pfcs/sass.ex

 
 

Repository files navigation

Sass.ex

Sass 3.3.6 bindings for elixir

Use

mix compile
iex -S mix
Sass.compile "#navbar {width: 80%;height: 23px;ul { list-style-type: none; } li {float: left; a { font-weight: bold; } } }"
{:ok, "#navbar {\n  width: 80%;\n  height: 23px; }\n  #navbar ul {\n    list-style-type: none; }\n  #navbar li {\n    float: left; }\n    #navbar li a {\n      font-weight: bold; }\n"}

Sass.compile_file "test/sample_scss.scss"
{:ok, "/* sample_scss.scss */\n#navbar {\n  width: 80%;\n  height: 23px; }\n  #navbar ul {\n    list-style-type: none; }\n  #navbar li {\n    float: left; }\n    #navbar li a {\n      font-weight: bold; }\n"}

License

MIT

Copyright (c) 2016 Scott Davis

Credit

Based on sass.ex by Daniel Farrell

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 46.9%
  • Elixir 40.5%
  • Makefile 7.8%
  • CSS 2.8%
  • SCSS 1.4%
  • Sass 0.6%