Sha256: e5bbb5166077a31c161c7b6ca9fb9084fef102f278f66eb78e4abad93cb3cae5

Contents?: true

Size: 484 Bytes

Versions: 8

Compression:

Stored size: 484 Bytes

Contents

require 'ramaze/gestalt'

module Ramaze
  module View
    ##
    # View adapter that allows you to use Ramaze::Gestalt in your views. See the
    # documentation of Ramaze::Gestalt for more information.
    #
    # @see Ramaze::Gestalt
    #
    module Gestalt
      def self.call(action, string)
        string = action.instance.instance_eval(string) if action.view
        html = [string].join

        return html, 'text/html'
      end
    end # Gestalt
  end # View
end # Ramaze

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ramaze-2023.01.06 lib/ramaze/view/gestalt.rb
ramaze-2012.12.08 lib/ramaze/view/gestalt.rb
ramaze-2012.12.08b lib/ramaze/view/gestalt.rb
ramaze-2012.04.14 lib/ramaze/view/gestalt.rb
ramaze-2012.03.07 lib/ramaze/view/gestalt.rb
ramaze-2011.12.28 lib/ramaze/view/gestalt.rb
ramaze-2011.10.23 lib/ramaze/view/gestalt.rb
ramaze-2011.07.25 lib/ramaze/view/gestalt.rb