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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8004cbae029ee293b21479ba8848c1651f26f335b999d16c0ef8d81441b71f30
4
- data.tar.gz: 9cf701e4bb970992b648fd54b73e4e7a700716bbaa8c5a898fce1b43800ebad1
3
+ metadata.gz: 10e65ec30c633da273e20802b6fc81ad1a4c4f4506f33425439f1073829098e9
4
+ data.tar.gz: ef59c86481a1081f6b5eb1ddb6fe272f9177cd16e22cba454945a28427853a03
5
5
  SHA512:
6
- metadata.gz: 91c0da1574759668917fd20254b82babcdbfca8302a6019b4d2d13e6125c26fdf08b65299965debf497ad530f2fd8120851bd88e7aabccc27e40360386a9aa98
7
- data.tar.gz: 66e8aba374f7e41d4c9c01cc5820141c8ed03f823f1ec2dea5de68c5a6af8aac98308a3a1b37ea80422fdd75e88ac98b268f1183bff3ce53a7b576e0231a0923
6
+ metadata.gz: 9d1f6037e43eed61531cbfbfe92ea8d95b0b620dbd9a786d679135c9d22c0c3988bcc2df3c3a85fd48b4354dc1278094053ae3575b62b65bedca6017a3c0d479
7
+ data.tar.gz: 17bbb185d6ac10e162c9a9e2dfd17239a5b79283992ca1df02265277693e478e600506f8b39a52ca0b169d59609772f80fbcfc3363f098fdd4deb16de8cbdd51
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.5
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.2
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.2
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