Module: Dokkit::Resource::Extension::HTML

Includes:
Url
Included in:
Builtin
Defined in:
lib/dokkit/resource/extensions/html.rb

Instance Method Summary collapse

Methods included from Url

#relative

Instance Method Details



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