Sha256: 4b4b101a5c36e58b8339cda95a886218d5dd74e8cb4447421eb70cbbf4b7207c

Contents?: true

Size: 341 Bytes

Versions: 30

Compression:

Stored size: 341 Bytes

Contents

module Alula
  module Helpers
    def url_for(name)
      File.join(self.site.config.url, name)
    end
    
    def link_to(content, url, attributes = {})
      tag = "<a"
      tag += " href=\"#{url}\""
      attributes.each do |name, value|
        tag += " #{name}=\"#{value}\""
      end
      tag += ">#{content}</a>"
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
alula-0.4.27 lib/alula/helpers/url_helpers.rb
alula-0.4.26 lib/alula/helpers/url_helpers.rb
alula-0.4.25 lib/alula/helpers/url_helpers.rb
alula-0.4.24 lib/alula/helpers/url_helpers.rb
alula-0.4.23 lib/alula/helpers/url_helpers.rb
alula-0.4.22 lib/alula/helpers/url_helpers.rb
alula-0.4.21 lib/alula/helpers/url_helpers.rb
alula-0.4.20 lib/alula/helpers/url_helpers.rb
alula-0.4.19 lib/alula/helpers/url_helpers.rb
alula-0.4.18 lib/alula/helpers/url_helpers.rb
alula-0.4.17 lib/alula/helpers/url_helpers.rb
alula-0.4.16 lib/alula/helpers/url_helpers.rb
alula-0.4.15 lib/alula/helpers/url_helpers.rb
alula-0.4.14 lib/alula/helpers/url_helpers.rb
alula-0.4.13 lib/alula/helpers/url_helpers.rb
alula-0.4.12 lib/alula/helpers/url_helpers.rb
alula-0.4.11 lib/alula/helpers/url_helpers.rb
alula-0.4.11a lib/alula/helpers/url_helpers.rb
alula-0.4.10 lib/alula/helpers/url_helpers.rb
alula-0.4.9 lib/alula/helpers/url_helpers.rb