Sha256: 7e062aa7c77f66511534069ff606f16e4179eda1766d2253143e85f93cca89ff

Contents?: true

Size: 525 Bytes

Versions: 14

Compression:

Stored size: 525 Bytes

Contents

# -*- encoding : utf-8 -*-
#
# tagz.rb doesn't cramp your style, allowing even invalid html to be
# generated.  note the use of the 'tagz' method, which can be used both to
# capture output and to append content to the top of the stack.
#

require 'tagz'
include Tagz.globally

def header
  tagz{
    html_
      body_(:class => 'ninja-like', :id => 'giraffe-slayer')

      __ "<!-- this is the header -->"
  }
end

def footer
  tagz{
    __ "<!-- this is the footer -->"

      _body
    _html
  }
end

puts header, footer

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
tagz-9.11.0 samples/d.rb
tagz-9.10.0 samples/d.rb
tagz-9.9.2 samples/d.rb
tagz-9.9.1 samples/d.rb
tagz-9.9.0 samples/d.rb
tagz-9.7.0 samples/d.rb
tagz-9.6.2 samples/d.rb
tagz-9.6.1 samples/d.rb
tagz-9.6.0 samples/d.rb
tagz-9.5.0 samples/d.rb
tagz-9.4.0 samples/d.rb
tagz-9.3.0 samples/d.rb
tagz-9.2.0 samples/d.rb
tagz-9.1.0 samples/d.rb