hamlboard 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +32 -2
- data/hamlboard.gemspec +1 -0
- data/lib/hamlboard/version.rb +1 -1
- metadata +17 -1
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Hamlboard
|
2
2
|
|
3
|
-
|
3
|
+
Simple clipboard wrapper for HTML2HAML.
|
4
|
+
|
5
|
+
Turn your HTML from your clipboard into HAML into your clipboard.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -18,7 +20,35 @@ Or install it yourself as:
|
|
18
20
|
|
19
21
|
## Usage
|
20
22
|
|
21
|
-
|
23
|
+
Look at some HTML, and then copy it. For example:
|
24
|
+
|
25
|
+
```html
|
26
|
+
<div class="panel">
|
27
|
+
<h5>This is a regular panel.</h5>
|
28
|
+
<p>It has an easy to override visual style, and is appropriately subdued.</p>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div class="panel callout radius">
|
32
|
+
<h5>This is a callout panel.</h5>
|
33
|
+
<p>It's a little ostentatious, but useful for important content (like the Foundation 3 Download panel).</p>
|
34
|
+
</div>
|
35
|
+
```
|
36
|
+
|
37
|
+
And then run `hamlboard` in your terminal.
|
38
|
+
|
39
|
+
You now have a hamlized version in your clipboard! Paste it wherever
|
40
|
+
appropriate.
|
41
|
+
|
42
|
+
Hamlized code:
|
43
|
+
|
44
|
+
```haml
|
45
|
+
.panel
|
46
|
+
%h5 This is a regular panel.
|
47
|
+
%p It has an easy to override visual style, and is appropriately subdued.
|
48
|
+
.panel.callout.radius
|
49
|
+
%h5 This is a callout panel.
|
50
|
+
%p It's a little ostentatious, but useful for important content (like the Foundation 3 Download panel).
|
51
|
+
```
|
22
52
|
|
23
53
|
## Contributing
|
24
54
|
|
data/hamlboard.gemspec
CHANGED
data/lib/hamlboard/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hamlboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -75,6 +75,22 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: 5.1.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: haml
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 3.1.6
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 3.1.6
|
78
94
|
description: Just a quick way to convert html to haml and put it in your clipboard.
|
79
95
|
email:
|
80
96
|
- me@danielfischer.com
|