• Stars
    star
    180
  • Rank 213,097 (Top 5 %)
  • Language
    CSS
  • License
    MIT License
  • Created over 15 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Convert HTML Snippets to Haml

html2haml.heroku.com

html2haml is a sinatra web application that allows you to convert html 2 haml.

It is currently using haml 4.0.0! and html2haml 2.0.0.beta

Features

  • html text to haml text

    Copy your html in the html text area and click on convert and html2haml will convert it to haml in the text box below.

  • url to haml

    Enter a url to a web site and click submit html2haml will download the page and convert it to haml in the haml text area below

  • Now you can use json to do your conversions

    Post:

      {'page': { 'html': '<h1>Hello World</h1>' }}
    

    and receive:

      {'page': { 'html': '<h1>Hello World</h1>', 'haml': '%h1 Hello World' }}
    

Requirements for Development

  • Ruby 1.9.3
  • Bundler

Development

git clone git://github.com/twilson63/html2haml.git

bundle install

# run tests
rake

# run application
rackup

# open browser to http://localhost:9292

Having problems

Please post an issue in the issues

How to contribute

Interested in adding a new feature to the application? Awesome!

  • First clone the repository
  • Write a test for your feature in the spec folder using rspec
  • Write your new feature
  • Once your code is passing and re-factored send a pull request

LICENSE

The MIT License

Copyright (c) 2008 Jack Russell Software Company

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

express-coffee

A Template for NodeJs Application using Express, CoffeeScript, Jade, Stylus, Nib
CoffeeScript
627
star
2

ngUpload

An AngularJS Service for uploading files using iframe
JavaScript
421
star
3

html2hscript

parses html into hyperscript
JavaScript
170
star
4

cakefile-template

This is a cakefile template for coffeescript, docco and mocha
CoffeeScript
88
star
5

cupcake

Get Started with an Express app in no time...
CoffeeScript
56
star
6

permaweb-cookbook

The Permaweb Cookbook is meant to house small digestible code snippets for someone that has no experience with blockchain or Permaweb to be able to grab and go.
55
star
7

express-couchUser

A express module for CouchDb based User Authentication Module
JavaScript
35
star
8

chester

Ruby
24
star
9

zerigo_dns

Zerigo DNS Gem
Ruby
23
star
10

angular-browserify-example

This is an example project of angularjs and browserify
JavaScript
22
star
11

ngTodoPouch

Yet another Todo Tutorial using AngularJS and PouchDb
JavaScript
22
star
12

mercury-router

JavaScript
20
star
13

hypar

svelte + vite + twind
Svelte
20
star
14

node-cloudq

Cloudq Server in Node
JavaScript
19
star
15

s3fs-recipe

s3fs chef recipe
Ruby
16
star
16

cybertron

Functional JavaScript Practice
JavaScript
15
star
17

bam

Easiest Static Web Generator on the Planet (beta)
JavaScript
15
star
18

permapages

You personal Web3 space
JavaScript
14
star
19

Sinatra-WebSite-Tutorial

Simple and I mean simple - Beginner Tutorial to Sinatra
Ruby
14
star
20

palmettoflow

14
star
21

node-csv2json

A stream object that reads csv and writes json
CoffeeScript
12
star
22

ipress2

Ipress2 is a static generator using MDsveX - experimental
JavaScript
12
star
23

sinatra-formhelpers

Suite of FormHelpers for Sinatra
Ruby
12
star
24

npm-gitlab

npm registry proxy to gitlab repositories
JavaScript
11
star
25

express-couchdb-core

Core RESTful API interface to CouchDb Documents
JavaScript
11
star
26

hugo2

Makes deploying Infrastructures and apps on Amazon Easy 2
Ruby
11
star
27

angular-uploadBtn

SingleClick Upload Button for AngularJS
JavaScript
11
star
28

material-hyperscript

Material Design Lite meets Hyperscript
JavaScript
11
star
29

permanotes

permanent notes in markdown built using the blockweave
Svelte
11
star
30

permaweb-img-app

Svelte
10
star
31

w3

A static web server
JavaScript
10
star
32

fun-fp

a fun functional utility library
JavaScript
9
star
33

meryl-coffee

Meryl CoffeeScript CoffeeKup and NodeJS Web Application Template
CoffeeScript
9
star
34

voxel-tutorial

A simple tutorial on getting started with voxeljs
JavaScript
9
star
35

coffeecup-helpers

CoffeeCup Html Helpers
JavaScript
9
star
36

creamer

A flatiron plugin for coffeecup
CoffeeScript
9
star
37

node-console

A node console based on node-webkit
JavaScript
8
star
38

stamp

Universal Sybil-Attack safe "Like" Button
JavaScript
8
star
39

sql-templar

A sql template engine on a crusade
JavaScript
8
star
40

hugo-cookbooks

hugo-cookbooks
Ruby
8
star
41

templatefoo

A sample CRUD vue.js application using PouchDb
JavaScript
8
star
42

ask

A NodeJs Library that creates an ask prompt for Cakefiles
CoffeeScript
8
star
43

Mongolog

A Simple Example of creating a blog using MongoDb, Sinatra, and Mustache
Ruby
7
star
44

coffeegrind

An Example of a full tilt awesome coffee-script application!
CoffeeScript
6
star
45

ngSandbox

An AngularJS service that creates an in browser based sandbox.
JavaScript
6
star
46

ng-adventure

A WIP - AngularJS Adventure Tutorial
HTML
6
star
47

blog-awesome-sauce

A demo application to demonstrate angularjs authentication pattern using the angular-http-auth interceptor pattern
JavaScript
6
star
48

iron-coffee

A Flatiron Template in CoffeeScript and Jade
JavaScript
6
star
49

csv2json

Simple Web Page that allows you to convert a csv to a json document
CoffeeScript
6
star
50

html2hscript.herokuapp.com

Simple Web App to convert html to hyperscript
JavaScript
6
star
51

angular-pouch

A bower package repository for an angularjs module wrapper for pouchdb
JavaScript
6
star
52

Chester-Ti-Example

Ti - Developer iPad Example using Chester Framework
JavaScript
5
star
53

vue-director

VueJS module that injects FlatIron Director Router into your Vue App
JavaScript
5
star
54

Pickle

Pickle a JQuery BDD Test Library
JavaScript
5
star
55

hugo

A infrastructure deployment tool
Ruby
5
star
56

codecamp-angularjs-reveal

codecamp-ng
JavaScript
5
star
57

easyboot

NodeJs Command Line App to pull and extract latest twitter bootstrap
CoffeeScript
4
star
58

express-pouchdb-jwt

Express PouchDB JWT Gateway
JavaScript
4
star
59

callback-canyon

Callback Canyon is an exercise repo that lets developer practice implementing functional callbacks
JavaScript
4
star
60

flatironjs-hello-world

Simple flatironjs hello-world
JavaScript
4
star
61

gol-svelte-tutorial

A tutorial using svelte to present a game of life
JavaScript
4
star
62

casper_server

A Web Server Framework for JasperReports
Ruby
4
star
63

crud

An angularJS - sinatra example
JavaScript
4
star
64

foobot

FooBot Demo
JavaScript
4
star
65

intro-to-arweave

Introduction to ARWeave and the permaweb
JavaScript
4
star
66

receipt-mgr

A IonicFramework Demo Application
JavaScript
4
star
67

grind

A project timeline tool in CoffeeScript, Coffeemate, Coffeekup, MongoSkin and JQuery Mobile
JavaScript
4
star
68

node-mssqlx

pipe sql to mssqlx and get json out
JavaScript
4
star
69

jTag

A javascript library that makes markup a breeze
JavaScript
4
star
70

frack

a redis cli chat application (WIP)
CoffeeScript
3
star
71

Casper

A library wrapper for Jasper Reports
Ruby
3
star
72

emoji-app

Emoji React Redux App
JavaScript
3
star
73

t63

React Components tachyons style
JavaScript
3
star
74

level-skv

A levelup database with a dnode interface as client and server
JavaScript
3
star
75

bot-code

A Code Editor for NodeBots using Blockly
JavaScript
3
star
76

sandman

Sandbox for SproutCore2 and CoffeeScript
CoffeeScript
3
star
77

apprentice

A nodejs web lib that adds some sugar to the routejs lib
CoffeeScript
3
star
78

eslint-plugin-funfp

eslint plugin for fun functional programming
JavaScript
3
star
79

block-builder

Build Voxel Worlds by Code
JavaScript
3
star
80

mega-uploader

Mega Uploader - Publish humongous files to the permaweb
Svelte
3
star
81

x-forward

Express Forward Proxy
JavaScript
3
star
82

linchpin

Indispensable Module for loosely coupled applications
JavaScript
3
star
83

csvjs

Comma Separated
CoffeeScript
3
star
84

mysql-down

MySQL LevelDOWN Adapter
JavaScript
3
star
85

meme-exchange

Meme Exchange
Svelte
3
star
86

palmetto

Palmetto Native Web Library - Components and Services
JavaScript
3
star
87

where2

Lib to convert object where clause to sql where clause
JavaScript
3
star
88

js2cs

Convert Javascript to CoffeeScript
JavaScript
3
star
89

couchdb-user-account

CouchDb User Account Model
JavaScript
3
star
90

pwa-workshop-newsy

Newsy a PWA News App
HTML
3
star
91

express-coffee2

Second Version of the Express-Coffee Template Skeleton
CoffeeScript
3
star
92

topflix

React/Redux Tutorial using movie api
JavaScript
3
star
93

cloudq_client

Cloudq Client is a Ruby Library that Publishes and Consumes Jobs from Cloudq
Ruby
3
star
94

hellskitchen

JRS Chef Script for EC2
Ruby
3
star
95

vbridge-crud-example

CRUD Example with the palmetto concept
JavaScript
3
star
96

hl7-db

A hl7 tcp server that stores msgs into an encrypted db which can be replicated to another server
JavaScript
3
star
97

coffee-n-tea

Sencha Touch Twitter example using Sencha and CoffeeScript
JavaScript
3
star
98

todo-fp

example todoapp using functional javascript (React, Recompose, Ramda)
JavaScript
3
star
99

s3foo

A command line app to makes it super simple to push websites to s3 hosting
JavaScript
3
star
100

cloudq

Cloudq is a remote MongoDb based Message Queue Server
Ruby
3
star