Sha256: 72b92b641a67a6c4362ebc4596f3d98649011636cc37ac9825908cad45934147

Contents?: true

Size: 392 Bytes

Versions: 8

Compression:

Stored size: 392 Bytes

Contents

require "tilt/template"

module RogerStyleGuide::Templates::Mustache
  # Tile template wrapper for our Mustache template
  class TiltTemplate < ::Tilt::Template
    def prepare
      @mustache = MustacheTemplate.new
    end

    def evaluate(scope, locals)
      @mustache.render(data, locals, scope)
    end
  end
end

Tilt.register RogerStyleGuide::Templates::Mustache::TiltTemplate, "mst"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
roger_style_guide-1.0.1 lib/roger_style_guide/templates/mustache/tilt_template.rb
roger_style_guide-1.0.0 lib/roger_style_guide/templates/mustache/tilt_template.rb
roger_style_guide-0.2.3 lib/roger_style_guide/templates/mustache/tilt_template.rb
roger_style_guide-0.2.2 lib/roger_style_guide/templates/mustache/tilt_template.rb
roger_style_guide-0.2.1 lib/roger_style_guide/templates/mustache/tilt_template.rb
roger_style_guide-0.2.0 lib/roger_style_guide/templates/mustache/tilt_template.rb
roger_style_guide-0.1.1 lib/roger_style_guide/templates/mustache/tilt_template.rb
roger_style_guide-0.1.0 lib/roger_style_guide/templates/mustache/tilt_template.rb