Sha256: fdcd9920fbc396b14e620154bc79237333a1e759a04f87094b971784b9d91aec
Contents?: true
Size: 320 Bytes
Versions: 2
Compression:
Stored size: 320 Bytes
Contents
require 'tilt' module Ykutils module Erubyx module_function def erubi_render(template_hash, scope, value_hash) unless template_hash[:OBJ] template_hash[:OBJ] = Tilt::ErubiTemplate.new{ template_hash[:TEMPLATE] } end template_hash[:OBJ].render( scope, value_hash ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ykutils-0.1.3 | lib/ykutils/erubyx.rb |
ykutils-0.1.1 | lib/ykutils/erubyx.rb |