nydp-html 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lisp/tests/html-tag-tests.nydp +9 -1
- data/lib/lisp/to-html.nydp +1 -1
- data/lib/nydp/html/version.rb +1 -1
- metadata +2 -3
- data/lib/lisp/haml.nydp +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c6bd4ce8e9265ae9efdf0b5be0e0d0a19d5e017
|
|
4
|
+
data.tar.gz: 714c127398ed568b92ec43b4bf4b38818de09865
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b9d69c89841bef6e7490406e86c8758b7190558ba6789fac51ca9b19af7ed15568ac3db2899e875bd3b11d92289bb518c3bd40ca25d40b540da9497cf514c24
|
|
7
|
+
data.tar.gz: f720b775f02ca686b956fe8f6142bfe80defff0ba8f4d6bfeb72916252f9707f5fb04621d253b385b455fc74382f7227a3600eebf10d5af077eddd24105d99f8
|
|
@@ -28,7 +28,15 @@
|
|
|
28
28
|
|
|
29
29
|
("generates html tags with classnames"
|
|
30
30
|
(%p "hello " (%b.thick "you") " over " (%i "there"))
|
|
31
|
-
"<p>hello <b class='thick'>you</b> over <i>there</i></p>")
|
|
31
|
+
"<p>hello <b class='thick'>you</b> over <i>there</i></p>")
|
|
32
|
+
|
|
33
|
+
("generates html tags with multiple classnames"
|
|
34
|
+
(%p "hello " (%b.thick.dense "you") " over " (%i "there"))
|
|
35
|
+
"<p>hello <b class='thick dense'>you</b> over <i>there</i></p>")
|
|
36
|
+
|
|
37
|
+
("does not insert empty 'brace-list for no attributes"
|
|
38
|
+
(pre-compile '(%p foo))
|
|
39
|
+
((curry html-tag (quote p) nil) foo)))
|
|
32
40
|
|
|
33
41
|
(examples-for prefix-list
|
|
34
42
|
("generates a simple html tag with attributes"
|
data/lib/lisp/to-html.nydp
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
(def html-tag-fn (name attrs) (fn content (apply html-tag name attrs content)))
|
|
67
67
|
|
|
68
68
|
(def build-html-tag-fn (tagname attrs)
|
|
69
|
-
`(curry html-tag ',tagname (brace-list ,@attrs)))
|
|
69
|
+
`(curry html-tag ',tagname ,(if attrs `(brace-list ,@attrs))))
|
|
70
70
|
|
|
71
71
|
(def html-percent-syntax (tagname attrs)
|
|
72
72
|
(if (caris 'dot-syntax tagname)
|
data/lib/nydp/html/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nydp-html
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Conan Dalton
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -122,7 +122,6 @@ files:
|
|
|
122
122
|
- README.md
|
|
123
123
|
- Rakefile
|
|
124
124
|
- bin/nydp-tests
|
|
125
|
-
- lib/lisp/haml.nydp
|
|
126
125
|
- lib/lisp/tests/haml-tests.nydp
|
|
127
126
|
- lib/lisp/tests/html-tag-tests.nydp
|
|
128
127
|
- lib/lisp/tests/textile-tests.nydp
|
data/lib/lisp/haml.nydp
DELETED
|
File without changes
|