Sha256: 64a82e8c12378ecb04ef469336c1f432157e6513cf0b66bf481c15fe5cfebadb

Contents?: true

Size: 210 Bytes

Versions: 10

Compression:

Stored size: 210 Bytes

Contents

module HTMLSnippets
  def snippet(name)
    File.read(File.expand_path("#{name}.html", snippet_path))
  end

  def snippet_path
    @snippet_path ||= File.expand_path("../../fixtures/html", __FILE__)
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
sablon-0.4.1 test/support/html_snippets.rb
sablon-0.4.0 test/support/html_snippets.rb
sablon-0.3.2 test/support/html_snippets.rb
sablon-0.3.1 test/support/html_snippets.rb
sablon-0.3.0 test/support/html_snippets.rb
sablon-0.2.1 test/support/html_snippets.rb
sablon-0.2.0 test/support/html_snippets.rb
sablon-0.1.1 test/support/html_snippets.rb
sablon-0.1.0 test/support/html_snippets.rb
sablon-0.0.22 test/support/html_snippets.rb