Sha256: 5eb1eb7dcf1e5dc16f24743fac73fa79f467215eba044b22bcc970fbe176ed74
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
require "amrita2/template" include Amrita2 tmpl = Template.new <<-END <<html< <<body< <<h1 :title |Attr[:title, :body]>> <<p < Amrita2 is a html template libraly for Ruby. <%= x %> END tmpl.set_trace(STDOUT) puts tmpl.render_with(:title=>{:title=>"hello world", :body=>"hello world" }) __END__ <html> <body> <h1>hello world</h1> <p>Amrita2 is a html template libraly for Ruby</p> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amrita2-2.0.1 | sample/hello/test1.rb |