Sha256: 817b4a7e06e63d96f3aa2955a516b89e4341e203a12898cf274104f66d1c8d95

Contents?: true

Size: 281 Bytes

Versions: 32

Compression:

Stored size: 281 Bytes

Contents

module ExpressTemplates
  module Template
    class Handler
      def self.call(template)
        new.call(template)
      end

      def call(template)
        # returns a string to be eval'd
        "(#{ExpressTemplates.compile(template)}).html_safe"
      end

    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
express_templates-0.9.3 lib/express_templates/template/handler.rb
express_admin-1.4.4 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_admin-1.4.3 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_templates-0.9.1 lib/express_templates/template/handler.rb
express_admin-1.4.2 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_templates-0.9.0 lib/express_templates/template/handler.rb
express_admin-1.4.1 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_admin-1.4.0 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_templates-0.8.0 lib/express_templates/template/handler.rb
express_admin-1.3.2 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_admin-1.3.1 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_templates-0.7.1 lib/express_templates/template/handler.rb
express_templates-0.7.0 lib/express_templates/template/handler.rb
express_admin-1.3.0 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_admin-1.2.1 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_admin-1.2.0 vendor/gems/express_templates/lib/express_templates/template/handler.rb
express_templates-0.5.0 lib/express_templates/template/handler.rb
express_templates-0.4.2 lib/express_templates/template/handler.rb
express_templates-0.4.1 lib/express_templates/template/handler.rb
express_templates-0.4.0 lib/express_templates/template/handler.rb