rstacruz / Expug
Pug templates for Elixir
Stars: β 74
Programming Languages
elixir
2628 projects
Projects that are alternatives of or similar to Expug
pypugjs
PugJS syntax adapter for Django, Jinja2 and Mako templates
Stars: β 237 (+220.27%)
Mutual labels: pug, jade
emitty
A platform for finding dependencies between files and building tools for incremental compilation or build.
Stars: β 69 (-6.76%)
Mutual labels: pug, jade
tale-pug
Tale Pug is the popular JavaScript Template Engine Pug, formerly Jade, for PHP!
Stars: β 32 (-56.76%)
Mutual labels: pug, jade
web-generator
π Gulp based task runner which creates HTML output from Pug HTML templates
Stars: β 13 (-82.43%)
Mutual labels: pug, jade
pretty-harp-jade-skeleton
π Harp & Jade/Pug skeleton theme for a personal blog
Stars: β 15 (-79.73%)
Mutual labels: pug, jade
virtual-jade
Compile Jade templates to Hyperscript for Virtual DOM libraries
Stars: β 31 (-58.11%)
Mutual labels: pug, jade
preview-vscode
A previewer of Markdown and HTML for Visual Studio Code
Stars: β 25 (-66.22%)
Mutual labels: pug, jade
Bootstrap3 Pug Former jade Node Express Grunt
Bootstrap 3 templated by Jade
Stars: β 242 (+227.03%)
Mutual labels: pug, jade
Compile Hero
π°Visual Studio Code Extension For Compiling Language
Stars: β 169 (+128.38%)
Mutual labels: pug, jade
bit-css
η¨εεη±»θ΅δΊε
η΄ ε±ζ§οΌεε°ηθ³δΈεcss
Stars: β 19 (-74.32%)
Mutual labels: pug, jade
Jade Html5 Boilerplate
HTML5 Boilerplate ported to Jade. Great as a drop and go markup skeleton for Express apps.
Stars: β 111 (+50%)
Mutual labels: pug, jade
lsxc
Compile Livescript + Pug + React + SASS as a single component
Stars: β 17 (-77.03%)
Mutual labels: pug, jade
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.
<iframe src='https://try-expug.herokuapp.com/try?code=doctype%20html%0Ahtml%0A%20%20head%0A%20%20%20%20meta(charset%3D%22utf-8%22)%0A%20%20%20%20title%20Hello%0A%20%20body%0A%20%20%20%20a.button(href%3D%40link)%0A%20%20%20%20%20%20%7C%20This%20is%20a%20link' height='400' width='100%' style='border: 0'></iframe>doctype html
html
meta(charset="utf-8")
title Hello, world!
body
a([email protected])
| 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 the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].