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