Is there a reason you wouldn't make a partial of this and render as any other partial?
Bill On Tue, Nov 29, 2011 at 7:01 AM, Nilegfx <[email protected]> wrote: > hello all, > if i have a block of haml code and i want to reuse it again and again. > how can i store it in a variable then store it anywhere in my code !! > > for example: > ============================================== > .box > .bx_title > .img_n_txt > %h2 > %img{:scr=>"assets/images/img.png"} > Title text here > .box_btn > %a{:title=>"hello",:href=>"#"}< > %span<> > %img{:scr=>"assets/images/btn_img.png"} > Go to box content > .bx_content > %img{:scr=>"assets/images/bx_content_img.png"} > ============================================== > > please advice > thanks > > -- > 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. > > -- 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.
