Sha256: 8f8fa803f53f0514fcae79f8addb61faf1ef34bfb686011ab0eb12f32d3d0870

Contents?: true

Size: 580 Bytes

Versions: 14

Compression:

Stored size: 580 Bytes

Contents

# -*- encoding : utf-8 -*-
#
# 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

14 entries across 14 versions & 1 rubygems

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