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