Sha256: f44e3b6fff91b108a02207e7f8a461623ea5bd267150799ad861ab2f54827da5

Contents?: true

Size: 347 Bytes

Versions: 17

Compression:

Stored size: 347 Bytes

Contents

# tagz gives you low-level control of the output and makes even dashersized
# xml tagz easy enough to work with
#

require 'tagz'
include Tagz.globally

xml =
  root_{
    tagz__('foo-bar', :key => 'foo&bar'){ 'content' }

    tagz__('bar-foo')
    tagz.concat 'content'
    tagz.concat tagz.escape('foo&bar')
    __tagz('bar-foo')
  }

puts xml

Version data entries

17 entries across 17 versions & 2 rubygems

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