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
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
For example, here’s what I would do using HTML::Template:
My dog's name is .
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?