From: Taku Nakajima Date: 2002-12-20T12:55:05+09:00 Subject: Re: Amrita Question - using a() with nested elements At Thu, 19 Dec 2002 21:35:41 +0900, Martin Hart wrote: > > > Hello all, > > Just downloaded Amrita and playing with it - looks really cool so far! > > I have a couple of static (i.e. no dynamic data) web sites that share a > common structure (framesets and the like) and I thought I'd have a go at > specifying the structure using Amrita, and then provide variable content > for the sites. I am having some difficulty applying the information > provided in the docs to a specific problem: I think this is what you want . ------------------------------------------------------------ require 'amrita/template' include Amrita t = TemplateText.new < END data = { :frameSet => a(:cols => "*,1,*") do { :blankFrame => a(:src => "blank.html"), :dataFrame => a(:src => "data.html") } end } t.expand(STDOUT, data) ------------------------------------------------------------ I've got a very simillar question at amrita-users. ( What a Syncronicity!) The description is here. http://www.walrus-ruby.org/amrita/amrita-users/msg00015.html -- Taku Nakajima http://www.walrus-ruby.org/amrita/