Popularity
5.5
Stable
Activity
0.0
Stable
80
3
3

Monthly Downloads: 101
Programming language: Elixir
License: MIT License
Tags: Templating    
Latest version: v0.9.2

expug alternatives and similar packages

Based on the "Templating" category.
Alternatively, view expug alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of expug or a related project?

Add another 'Templating' Package

README

Expug

Indented shorthand HTML templates for Elixir

Expug is a template language based on Pug (formerly known as Jade). It lets you write HTML as indented shorthand, inspired by Haml, Slim, Pug/Jade, and so on.

doctype html
html
  meta(charset="utf-8")
  title Hello, world!
body
  a(href=@link)
    | This is a link

Installation

Add expug to your list of dependencies in mix.exs:

def deps do
  [{:expug, "~> 0.9"}]
end

Also see phoenix_expug for Phoenix integration.

Syntax

Use CSS-like selectors for elements, and express your nesting through indentations.

ul.links
  li
    a(href="/") This is a link

Read more: Syntax

Why should I use it?

Read on this comparison to see how Expug compares to other similar libraries.

Thanks

expug © 2016-2017, Rico Sta. Cruz. Released under the MIT License. Authored and maintained by Rico Sta. Cruz with help from contributors (list).

ricostacruz.com  ·  GitHub @rstacruz  ·  Twitter @rstacruz

 


*Note that all licence references and agreements mentioned in the expug README section above are relevant to that project's source code only.