Sha256: 850c71765c973d052ad3029b2962e7a4a3c4d5eaa4b739247192d4e2c6717db2

Contents?: true

Size: 201 Bytes

Versions: 8

Compression:

Stored size: 201 Bytes

Contents

require 'cgi'

module Jekyll
  module HamlHelpers
    
    def h(text)
      CGI.escapeHTML(text)
    end
    
    def link_to(text, url)
      %{<a href="#{h url}">#{text}</a>}
    end
    
  end
end

Version data entries

8 entries across 8 versions & 5 rubygems

Version Path
cduruk-jekyll-0.5.2 lib/jekyll/haml_helpers.rb
cypher-jekyll-0.5.2 lib/jekyll/haml_helpers.rb
cypher-jekyll-0.5.3 lib/jekyll/haml_helpers.rb
henrik-jekyll-0.5.1 lib/jekyll/haml_helpers.rb
henrik-jekyll-0.5.2 lib/jekyll/haml_helpers.rb
jberkel-jekyll-0.5.7 lib/jekyll/haml_helpers.rb
jberkel-jekyll-0.5.4 lib/jekyll/haml_helpers.rb
lonnon-jekyll-0.6.0 lib/jekyll/haml_helpers.rb