From: Dan Debertin Date: 2002-08-29T00:49:52+09:00 Subject: Amrita: simple variable interpolation --Multipart_Wed_Aug_28_10:49:37_2002-1 Content-Type: text/plain; charset=US-ASCII I'm just playing with Amrita today in anticipation of a CGI project looming in my future. It looks perfect -- no more forcing my data into weird hashes of arrays of single-element hashes, and other monstrosities. I'm able to apply it to everything described in the docs -- tables, lists, etc. -- but I don't see a way to perform simple variable substitution. My understanding is that it requires a preceding tag with an "id=" attribute, but ordinary text doesn't necessarily have tags. For example, here's what I would do using HTML::Template: (template)

My dog's name is . (elided code) tmpl.param(:dogname => "grumpy") tmpl.output # --> "

\nMy dog's name is grumpy.\n" Now, there's no tag in there to apply an id attribute to, so I'm a little stumped as to how to do this with Amrita. What am I missing? Thanks, Dan --Multipart_Wed_Aug_28_10:49:37_2002-1 Content-Type: text/plain; charset=US-ASCII -- /^Dan Debertin$/ airboss@nodewarrior.org | Did I sleep a little too late, www.nodewarrior.org | or am I awake? --Byrne --Multipart_Wed_Aug_28_10:49:37_2002-1 Content-Type: text/plain; charset=US-ASCII -- /^Dan Debertin$/ airboss@nodewarrior.org | Did I sleep a little too late, www.nodewarrior.org | or am I awake? --Byrne --Multipart_Wed_Aug_28_10:49:37_2002-1--