Sha256: 3bf8673d2604205950ab7b420dc07dd1a9e29204d642edfe6764d5da20e56219
Contents?: true
Size: 516 Bytes
Versions: 5
Compression:
Stored size: 516 Bytes
Contents
# # 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') tagz << "\n<!-- this is the header -->\n" } end def footer tagz{ tagz << "\n<!-- this is the footer -->\n" body_ html_ } end puts header, footer
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
tagz-4.6.0 | samples/d.rb |
tagz-4.2.0 | samples/d.rb |
tagz-4.3.0 | samples/d.rb |
tagz-4.5.0 | samples/d.rb |
tagz-4.4.0 | samples/d.rb |