Sha256: d0e0b40645d964a5d1b0c870235a4172579cec2a885bf40fea0fcc6201b1a08a
Contents?: true
Size: 389 Bytes
Versions: 13
Compression:
Stored size: 389 Bytes
Contents
$:.unshift File.expand_path('../../lib', __FILE__) require 'slight/tilt' script = %q{ div "btn btn-succes #{btn_size}" do @btn_txt end } @btn_txt = 'Pls,Click-Me.' body = Proc.new { script } template = Tilt.new('tilt_example.rb', 5, {}, &body) puts template.render(self, :btn_size => "btn-lg") # <div class="btn btn-succes btn-lg"> # Pls,Click-Me. # </div>
Version data entries
13 entries across 13 versions & 1 rubygems