From tnakajima at brain-tokyo.jp Wed Dec 7 03:53:42 2005
From: tnakajima at brain-tokyo.jp (Taku Nakajima)
Date: Wed, 07 Dec 2005 17:53:42 +0900
Subject: [Amrita2-users] [ANN] Amrita2 1.9.6
Message-ID: <4396A316.8080105@brain-tokyo.jp>
Amrita2 is a XML/HTML template library for Ruby. I released a new
version 1.9.6 as BETA1 for 2.0. Get it from
http://amrita2.rubyforge.org/
I reduced undocumented features and refactored much to prepare the
comming stable release. And ..
* added gemspec and make it Rails plugin
* simplified the ERB processing feature
* new feature for setting two attributes (like class='odd' and
class='even') alternately
Now Amrita2 template can contain ERB source in it.
| name | author |
| '><%= $_.name %>
]]> |
|
CDATA in element will be evaluated as many times as number of
'languages' data. And each item will be set to '$_' before ERB
evaluating. See this page for detail.
How to use Amrita2 with Ruby On Rails
http://amrita2.rubyforge.org/Rails.html
And this method setup Template to insert two attributes alternately.
def languages_setup_template(template)
tmpl = Amrita2::TemplateText.new(template)
tmpl.use_erb(binding)
tmpl.element_option[:languages] = { :mv_attr=> { :class=>%w(odd even)
} }
tmpl
end
This template produces output like this.
From jmcclain at tcshealthcare.com Thu Dec 22 11:44:38 2005
From: jmcclain at tcshealthcare.com (John MccLain)
Date: Thu, 22 Dec 2005 08:44:38 -0800
Subject: [Amrita2-users] is anyone there??
Message-ID:
I have not received any emails - is anyone on this list?
If so, I am a newbie. Can someone tell me how robust Amrita2 is - can it
perform all Rails view functionality?
Who is using it? is there any code examples besides the main site?
John McClain
Senior Software Engineer
TCS Healthcare
jmcclain at tcshealthcare.com
(530)886-1700x235
"Skepticism is the first step toward truth"
From tnakajima at brain-tokyo.jp Thu Dec 22 19:38:18 2005
From: tnakajima at brain-tokyo.jp (Taku Nakajima)
Date: Fri, 23 Dec 2005 09:38:18 +0900
Subject: [Amrita2-users] is anyone there??
In-Reply-To:
References:
Message-ID: <43AB46FA.2050101@brain-tokyo.jp>
John MccLain wrote:
> I have not received any emails - is anyone on this list?
There are 21 members in this list now.
> If so, I am a newbie. Can someone tell me how robust Amrita2 is - can it
> perform all Rails view functionality?
> Who is using it? is there any code examples besides the main site?
I think many are interested in Amrita2. But I have not found anyone
who use it in real use yet.
I myself used it in my job partialy with no trouble. I think
documented features are robust now.
--
Taku Nakajima
From kasatani at gmail.com Mon Dec 26 05:26:59 2005
From: kasatani at gmail.com (Shinya Kasatani)
Date: Mon, 26 Dec 2005 19:26:59 +0900
Subject: [Amrita2-users] is anyone there??
In-Reply-To: <43AB46FA.2050101@brain-tokyo.jp>
References:
<43AB46FA.2050101@brain-tokyo.jp>
Message-ID:
Hi Taku,
I'm trying to use Amrita2 with Rails, but I got stuck when I tried to
use same IDs in a single template. I've found it's already reported in
the tracker:
http://rubyforge.org/tracker/index.php?func=detail&aid=3057&group_id=557&atid=2216
Are there any plans to fix this problem?
I've been reading the code if I can fix this, but it doesn't seem to
be very easy.
Thanks,
Shinya Kasatani
On 23/12/05, Taku Nakajima wrote:
> John MccLain wrote:
> > I have not received any emails - is anyone on this list?
>
> There are 21 members in this list now.
>
> > If so, I am a newbie. Can someone tell me how robust Amrita2 is - can it
> > perform all Rails view functionality?
> > Who is using it? is there any code examples besides the main site?
>
> I think many are interested in Amrita2. But I have not found anyone
> who use it in real use yet.
>
> I myself used it in my job partialy with no trouble. I think
> documented features are robust now.
>
> --
> Taku Nakajima
> _______________________________________________
> Amrita2-users mailing list
> Amrita2-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/amrita2-users
>
|