Sha256: 88ac5144f893f362c1d80f7cc09316e96ccc9a85cbe74f23142ec46dcd3876f3

Contents?: true

Size: 755 Bytes

Versions: 6

Compression:

Stored size: 755 Bytes

Contents

#                                                                          
# File 'html.rb' created on 21 giu 2008 at 19:55:48.                    
#
# See 'dokkit.rb' or +LICENSE+ for licence information.                      
#                                                                          
# (C)2006-2008 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). 
#                                                                          

require 'dokkit/resource/extensions/url'

module Dokkit
  module Resource
    module Extension
      module HTML
        include Url
        def link_to(name, args = { })
          "<a href=\"#{relative(args[:href])}\" class=\"#{args[:class]}\">#{name}</a>"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dokkit-0.4.0 lib/dokkit/resource/extensions/html.rb
dokkit-0.4.1 lib/dokkit/resource/extensions/html.rb
dokkit-0.4.2 lib/dokkit/resource/extensions/html.rb
dokkit-0.4.3 lib/dokkit/resource/extensions/html.rb
dokkit-0.4.4 lib/dokkit/resource/extensions/html.rb
dokkit-0.5.0 lib/dokkit/resource/extensions/html.rb