On Nov 4, 5:45 pm, Nathan Weizenbaum <[email protected]> wrote: > The problem with using 'yield' here, at least in the context of Rails, is > that 'yield' only ever returns a string and Haml attributes must be in hash > form. You could just use instance variables, though; do %ht...@namespaces}, > and then assign @namespaces = {:dc => :foaf} in your template.
Thanks Nathan - came to that conclusion shortly after posting (actually, discovered a post that informed me yield was just syntactic sugar for instance vars anyway!). Did try to think of a way of getting a hash back in a yield-type manner, but failed :) -- 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.
