htmlcom 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/htmlcom.rb +31 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10e65ec30c633da273e20802b6fc81ad1a4c4f4506f33425439f1073829098e9
|
4
|
+
data.tar.gz: ef59c86481a1081f6b5eb1ddb6fe272f9177cd16e22cba454945a28427853a03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d1f6037e43eed61531cbfbfe92ea8d95b0b620dbd9a786d679135c9d22c0c3988bcc2df3c3a85fd48b4354dc1278094053ae3575b62b65bedca6017a3c0d479
|
7
|
+
data.tar.gz: 17bbb185d6ac10e162c9a9e2dfd17239a5b79283992ca1df02265277693e478e600506f8b39a52ca0b169d59609772f80fbcfc3363f098fdd4deb16de8cbdd51
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/htmlcom.rb
CHANGED
@@ -215,11 +215,18 @@ xsl= %q(
|
|
215
215
|
end
|
216
216
|
|
217
217
|
alias refresh ping
|
218
|
+
|
219
|
+
def to_css()
|
220
|
+
@build.to_css
|
221
|
+
end
|
218
222
|
|
219
223
|
def to_html()
|
220
224
|
@build.to_html
|
221
225
|
end
|
222
226
|
|
227
|
+
def to_js()
|
228
|
+
@build.to_js
|
229
|
+
end
|
223
230
|
|
224
231
|
# not yet working properly
|
225
232
|
def to_bangtag()
|
@@ -245,5 +252,29 @@ xsl= %q(
|
|
245
252
|
end
|
246
253
|
|
247
254
|
end
|
255
|
+
|
256
|
+
class VerticalMenu
|
257
|
+
|
258
|
+
def initialize(links, debug: false)
|
259
|
+
@jtb = JsMenuBuilder.new(:vertical_menu, {items: links, debug: debug})
|
260
|
+
end
|
261
|
+
|
262
|
+
def to_css()
|
263
|
+
@jtb.to_css
|
264
|
+
end
|
265
|
+
|
266
|
+
def to_html()
|
267
|
+
@jtb.to_html
|
268
|
+
end
|
269
|
+
|
270
|
+
def to_js()
|
271
|
+
@jtb.to_js
|
272
|
+
end
|
273
|
+
|
274
|
+
def to_webpage()
|
275
|
+
@jtb.to_webpage
|
276
|
+
end
|
277
|
+
|
278
|
+
end
|
248
279
|
|
249
280
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: htmlcom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
version: '0.3'
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.3.
|
49
|
+
version: 0.3.4
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
version: '0.3'
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: 0.3.
|
59
|
+
version: 0.3.4
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: jstreebuilder
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|