SlimFast Build Status

A refreshing way to slim down your markup in Elixir.

UNDER ACTIVE DEVELOPMENT

SlimFast is an Elixir library for rendering slim templates as HTML; the name is a very bad pun. Easily turn this:

doctype html
html
  head
    meta name="keywords" description="slim fast"
    title = site_title
  body
    #id.class
      ul
      = Enum.map [1, 2], fn x ->
        li = x

Into this:

<!DOCTYPE html>
<html>
<head>
  <meta name="keywords">
  <title>Website Title</title>
</head>

<body>
  <div class="class" id="id">
    <ul>
      <li>1</li>
      <li>2</li>
    </ul>
  </div>
</body>
</html>

With this:

SlimFast.evaluate(slim, site_title: "Website Title")

Contributing

Please do. New code should have accompanying tests.

License

Please see LICENSE for licensing details.