Sha256: 63d2550da966395b5d4fa4f68764cdcc45fedbb5034acfd1d4579a620f3f06d1

Contents?: true

Size: 442 Bytes

Versions: 2

Compression:

Stored size: 442 Bytes

Contents

== RagTag

Lets say we have a Rtals document called 'test.rt' containing:

  <html>
  <body>
    <h1>Example <span replace="title">DUMMY</span></h1>
    <p>This is an example of a RagTag template.</p>
  </body>
  </html>

We can render Rtal documents via the +render+ method, as we can any format.

  data = { :title=>"Document" }

  html = Malt.render(:file=>'tmp/test.rt', :data=>data)

  html.assert.include?('<h1>Example Document</h1>')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
malt-0.3.0 qed/03_formats/08_ragtag.rdoc
malt-0.2.0 qed/03_formats/08_ragtag.rdoc