whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch styleallthethings updated: Doh **args are symbols here
Date Thu, 25 May 2017 16:06:22 GMT
This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch styleallthethings
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/styleallthethings by this push:
       new  ca5ddfc   Doh **args are symbols here
ca5ddfc is described below

commit ca5ddfc38f7c747e5bbef95d611d5633691158d6
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Thu May 25 12:06:18 2017 -0400

    Doh **args are symbols here
---
 lib/whimsy/asf/themes.rb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/whimsy/asf/themes.rb b/lib/whimsy/asf/themes.rb
index 64d8f2d..f783ee7 100644
--- a/lib/whimsy/asf/themes.rb
+++ b/lib/whimsy/asf/themes.rb
@@ -66,8 +66,8 @@ class Wunderbar::HtmlMarkup
         end
         _div.panel_body do
           _ul do
-            if args.key?('related')
-              args['related'].each do |url, desc|
+            if args.key?(:related)
+              args[:related].each do |url, desc|
                 _li do
                   _a desc, href: url
                 end
@@ -155,12 +155,11 @@ class Wunderbar::HtmlMarkup
   
   # Emit complete bootstrap theme (container/row/column) for common use cases
   def _whimsy_body **args
-    puts JSON.pretty_generate(args)
     _whimsy_nav args
     _div.content.container_fluid do
       _div.row do
         _div.col_sm_12 do
-          _h1 args['title']
+          _h1 args[:title]
         end
       end
       _div.row do

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message