Sha256: 87a9e6dd6be9fcbbf21bc19cd3795d0531564bad80e6fa520115d82869bd877f
Contents?: true
Size: 518 Bytes
Versions: 21
Compression:
Stored size: 518 Bytes
Contents
require 'zafu/template' module Zafu module TestHelper include RubyLess::SafeClass def zafu_erb(source, src_helper = self, compiler = Zafu::Compiler) Zafu::Template.new(source, src_helper, compiler).to_erb(compilation_context) end def zafu_render(source, src_helper = self, compiler = Zafu::Compiler) eval Zafu::Template.new(source, src_helper, compiler).to_ruby(compilation_context) end def compilation_context {:node => @node_context, :helper => self} end end end
Version data entries
21 entries across 21 versions & 2 rubygems