Sha256: 03f84a667939ce273ce608eb68fda3cdac34bb23a8cc8fa969366c0eb102bec0

Contents?: true

Size: 255 Bytes

Versions: 22

Compression:

Stored size: 255 Bytes

Contents

#
# 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

22 entries across 22 versions & 2 rubygems

Version Path
tagz-4.6.0 samples/a.rb
tagz-5.0.1 samples/a.rb