Sha256: 13a491da81187060a9bddf96d854d66af98bbe0397c0878a5af6cec69e439a8c

Contents?: true

Size: 282 Bytes

Versions: 14

Compression:

Stored size: 282 Bytes

Contents

# -*- encoding : utf-8 -*-
#
# in the simplest case tagz generates html using a syntax which safely mixes
# in to any object
#

require 'tagz'
include Tagz.globally

class GiraffeModel
  def link
    a_(:href => "/giraffe/neck/42"){ "whack!" }
  end
end

puts GiraffeModel.new.link

Version data entries

14 entries across 14 versions & 1 rubygems

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