# File lib/nanoc3/helpers/link_to.rb, line 48
    def link_to(text, target, attributes={})
      # Find path
      path = target.is_a?(String) ? target : target.path

      # Join attributes
      attributes = attributes.inject('') do |memo, (key, value)|
        memo + key.to_s + '="' + h(value) + '" '
      end

      # Create link
      "<a #{attributes}href=\"#{h path}\">#{text}</a>"
    end