Sha256: 47a6f22cb8257bfc9ec3d9935ea987ddb70a990a9d89f10d9774e3f1f2283c0e

Contents?: true

Size: 553 Bytes

Versions: 17

Compression:

Stored size: 553 Bytes

Contents

#
# tagz.rb can generate really compact html.  this is great to save bandwidth
# but can sometimes make reading the generated html a bit rough.  of course
# using tidy or the dom inspector in firebug obviates the issue; nevertheless
# it's sometime nice to break things up a little.  you can use 'tagz << "\n"'
# or the special shorthand '__' or '___' to accomplish this
#

require 'tagz'
include Tagz.globally

html =
  div_{
    span_{ true }
    __
    span_{ false }  # hey ryan, i fixed this ;-)
    ___

    ___ 'foo & escaped bar'
  }

puts html

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
ahoward-tagz-5.1.0 samples/f.rb
ahoward-tagz-6.0.0 samples/f.rb
ahoward-tagz-7.0.0 samples/f.rb
ahoward-tagz-7.1.0 samples/f.rb
tagz-9.0.0 samples/f.rb
tagz-8.2.0 samples/f.rb
tagz-8.1.0 samples/f.rb
tagz-8.0.0 samples/f.rb
tagz-7.2.2 samples/f.rb
tagz-7.2.3 samples/f.rb
tagz-7.2.1 samples/f.rb
tagz-7.2.0 samples/f.rb
tagz-6.0.0 samples/f.rb
tagz-7.0.0 samples/f.rb
tagz-7.1.0 samples/f.rb
tagz-5.0.0 samples/f.rb
tagz-5.0.1 samples/f.rb