Module: Dokkit::Resource::Extension::HTML
Instance Method Summary collapse
Methods included from Url
Instance Method Details
#link_to(name, args = { }) ⇒ Object
16 17 18 |
# File 'lib/dokkit/resource/extensions/html.rb', line 16 def link_to(name, args = { }) "<a href=\"#{relative(args[:href])}\" class=\"#{args[:class]}\">#{name}</a>" end |