Sha256: 7cfa33e3e9e21693ca99d6a096120c97df82c9d1b4d02581a69078120e6e51fe

Contents?: true

Size: 435 Bytes

Versions: 3

Compression:

Stored size: 435 Bytes

Contents

require "amrita2/template"
include Amrita2

tmpl = Template.new <<-END
<<html<
  <<body<
    <<h1 :title>>
    <<p :body<
      <<:template>> is a html template libraly for <<:lang>>
END

#tmpl.set_trace(STDOUT)
puts tmpl.render_with(:title=>"hello world", :body=>{ :template=>"Amrita2", :lang=>"Ruby" })

__END__

<html>
   <body>
      <h1>hello world</h1>
      <p>Amrita2 is a html template libraly for Ruby</p>
   </body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
amrita2-2.0.0 sample/hello/hello.rb
amrita2-2.0.1 sample/hello/hello.rb
amrita2-2.0.2 sample/hello/hello.rb