|
Loading...
|
haml@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [haml] Using tap with Haml to create scoped local variables Szymon Nowak Thu Mar 17 04:00:54 2011
I know, but in ERB I prefer using #tap to scope local variable - this way it's only available inside the block where it's needed and not in the whole view. Usually the code can be simply refactored into a helper method, but sometimes it was useful. Thanks, Szymon -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [EMAIL PROTECTED] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en.
- [haml] Using tap with Haml to create scoped local variables Szymon Nowak 2011/03/16
- Re: [haml] Using tap with Haml to create scoped local variables Chris Eppstein 2011/03/16
- Re: [haml] Using tap with Haml to create scoped local variables Szymon Nowak 2011/03/17 <=
- Re: [haml] Using tap with Haml to create scoped local variables Bradley Grzesiak 2011/03/17