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

Version Path
slight-lang-1.3.6 example/tilt_example.rb
slight-lang-1.3.5 example/tilt_example.rb
slight-lang-1.3.4 example/tilt_example.rb
slight-lang-1.3.3 example/tilt_example.rb
slight-lang-1.3.2 example/tilt_example.rb
slight-lang-1.3.1 example/tilt_example.rb
slight-lang-1.3.0 example/tilt_example.rb
slight-lang-1.2.3 example/tilt_example.rb
slight-lang-1.2.1.3 example/tilt_example.rb
slight-lang-1.2.1.2 example/tilt_example.rb
slight-lang-1.2.1.1 example/tilt_example.rb
slight-lang-1.1.6 example/tilt_example.rb
slight-lang-1.2.0 example/tilt_example.rb