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