Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (9 sloc) 249 Bytes
module Groovedown
module Helpers
# TODO: escape params
def link_to(name, url, params={})
url << "?#{params.map{|k,v|"#{k}=#{v}"}.join("&")}" unless params.empty?
%Q(<a href="#{url}" rel="external">#{name}</a>)
end
end
end