Sha256: 3196afcdf527b75da5687a18649b5434381e1943df878754c6eb038b5799ec75
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require "steering" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
steering-rails-1.3.0 | lib/steering/rails/template.rb |