Hi!
Today I resolved my problem with layouts of Javascript using a
"single" core
modification and like to share it with you.
My problem is in merb-0.5.3 and i don''t know if this really is a
problem or
is a option of Merb developers.
But, to solve *my* case. To use layouts of javascript files in merb
0.5.3only change that line:
if engine.exempt_from_layout? || opts[:layout] == :none ||
[:js].include?(@_template_format)
in File lib/merb/mixins/render.rb,
to
if engine.exempt_from_layout? || opts[:layout] == :none
:)
On Tue, Mar 18, 2008 at 5:52 PM, Dirceu <dirceuu at gmail.com> wrote:
> I''ve tryed to use the same logic in html layouts to handle
javascript
> files without success.
> All I need is not repeat javascript code in various erb templates that
> have 90% of identical code.
>
> - I can''t use more than 1 js file.
> - If isn''t a way to do this like erb can do in html,
what''s the best way
> to "include" a file in another using Merb?
>
> --
> from Brazil, Dirceu Pauka
> a ninja of the boo-box team
> http://boo-box.com
>
> Please don''t print this e-mail
> Evite imprimir este e-mail
--
from Brazil, Dirceu Pauka
a ninja of the boo-box team
http://boo-box.com
Please don''t print this e-mail
Evite imprimir este e-mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/merb-devel/attachments/20080319/2e3da8ad/attachment.html