Xavi Caballe wrote:> I am currently naming my JavaScript files with the extension .rhtml just
> to be able of using ERb in them ("If the template file has a +.rhtml+
> extension then it uses a mixture of ERb (included in Ruby) and HTML",
> http://api.rubyonrails.com/classes/ActionView/Base.html ). Does anybody
> know of a better way?
> I looked at RJS, but it doesn''t seem the right solution here.
Not sure why you wouldn''t use RJS, but I saw a blog posting about
setting up a route and controller to to use ERb on .rcss files. The
same technique should work for you:
http://blog.hasmanythrough.com/articles/2006/03/23/dirt-simple-rcss-templates
--
Devin Ben-Hur 503/860-4114
mailto:devin-ghHzeZDuwB3R7s880joybQ@public.gmane.org
You may not have noticed, but we live in one of the safest,
most peaceful, times in human history. In the US, the three
leading causes of death are: killing yourself, killing yourself,
and killing yourself <http://tinyurl.com/msxhq>.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.4/424 - Release Date: 8/21/2006
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---