Sha256: c6e3de690c35cf97c945fbfb0e81ab6b7e2e8b4fb16e67136fc0496b8c1db573

Contents?: true

Size: 374 Bytes

Versions: 14

Compression:

Stored size: 374 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

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