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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66713483a3c6c9f3fd592499c322a9fb608cd5bb
4
- data.tar.gz: 69a7ddf8287f948918187e36ed5c6ed413c57d7e
3
+ metadata.gz: 5c6bd4ce8e9265ae9efdf0b5be0e0d0a19d5e017
4
+ data.tar.gz: 714c127398ed568b92ec43b4bf4b38818de09865
5
5
  SHA512:
6
- metadata.gz: 213f6cb41c604eef0f6f27c87de4715ad3a337a84012040f731145db805de389b6e5510f4f3fff06edec76c014324530bef36dbe60317428ad57c5fe482130a2
7
- data.tar.gz: 638f23055de03498f840bb9683eb57924c9a840e08ebd2b584aa0458425a62a528a9c5ad16c09c4012dd1b9f3dd8ed4f5e4a07705ad8c6983f929b2fa17deb0b
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"
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Nydp
2
2
  module Html
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
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.7
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-06 00:00:00.000000000 Z
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
File without changes