Sha256: b47ffc543136cdcbcaadca7479b9ad49c21b4adcb848d9bce388bc15ea70ad40

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

== RTAL

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

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

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

  data = { :title=>"Document" }

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
malt-0.1.1 qed/03_formats/08_rtal.rdoc