Sha256: cf35e8d5aa882ffe601c8d3e5d1164e0e74f00acbfcf19ee220a0eaa991614fb
Contents?: true
Size: 471 Bytes
Versions: 3
Compression:
Stored size: 471 Bytes
Contents
require 'remarkably' require 'remarkably/engines/html' module Ramaze module View module Remarkably def self.call(action, string) string = transform_string(action, string) if action.view html = string.to_s return html, 'text/html' end def self.transform_string(action, string) action.instance.instance_eval do args = action.params instance_eval(string) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ramaze-2023.01.06 | lib/ramaze/view/remarkably.rb |
ramaze-2012.12.08 | lib/ramaze/view/remarkably.rb |
ramaze-2012.12.08b | lib/ramaze/view/remarkably.rb |