lib/middleman/helpers.rb in middleman-0.2.8 vs lib/middleman/helpers.rb in middleman-0.2.9

- old
+ new

@@ -1,6 +1,7 @@ Middleman.helpers do - def link_to(title, url="#", params={ :href => url }) + def link_to(title, url="#", params={}) + params.merge!(:href => url) params = params.map { |k,v| %Q{#{k}="#{v}"}}.join(' ') %Q{<a #{params}>#{title}</a>} end def page_classes(*additional)