Sha256: 296c4454c96d17499e1fda8f5cbfe778e25e30d7e50e6a67d26533bd9b801f27
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
require "tilt" module Steering module Rails class Template < Tilt::Template def self.engine_initialized? defined? Steering.compile end def initialize_engine require_template_library "steering" end def prepare end def evaluate(scope, locals, &block) "Handlebars.template(#{Steering.compile(data)})" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
steering-rails-1.1.0 | lib/steering/rails/template.rb |
steering-rails-1.0.0 | lib/steering/rails/template.rb |