Project

dang

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Dang is a Ruby templating language. It uses angle brackets and CSS syntax. Somewhere between ERB and Haml.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.12
~> 4.0
 Project Readme

Dang

https://github.com/veganstraightedge/dang

Description

Dang is a Ruby templating language. It uses angle brackets and CSS syntax. Somewhere between ERB and Haml.

Build Status

Build Status

Features

  • CSS selectors for HTML tags + attributes
  • Not as noisy syntax than ERB
  • Not quite as elegant as Haml
  • No %s in your code
  • More closers than Haml
  • A lot is based on / inspired by Haml

Synopsis

Syntax

  • <b a simple bold tag b>
  • <div#id div with an id div>
  • <p.class lorem ipsum p>
  • <a[href=/] Home a>
  • <! html comment !>
  • <: non_printing(ruby) :>
  • <| printing(ruby) |>
  • !!! doctype shorthand inspired by HAML

Usage

From the command line, transform a file of dang into html:

dang path/to/file.html.dang

Or just a snippet of dang into html:

dang -e "<i snippet i>"

Current Version

2.1.0

Requirements

For development:

Installation

Gemfile

Add this line to your application's Gemfile:

gem 'dang'

Manual

Or install it yourself as:

gem install dang

You may need to use sudo to install it manually.

Developers

After checking out the source, run:

bundle

This will install any missing dependencies.

Authors

Contributing

  1. Fork it
  2. Get it running
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Write your code and specs
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

If you find bugs, have feature requests or questions, please file an issue.

License

PUBLIC DOMAIN

Your heart is as free as the air you breathe.
The ground you stand on is liberated territory.

In legal text, Dang is dedicated to the public domain using Creative Commons -- CC0 1.0 Universal.

http://creativecommons.org/publicdomain/zero/1.0