My temporary solution until I can figure out how to get a reference to
the scope object from within a filter:
context = GentleREST::Context.new(self)
class <<context
def pre_code_tag(content)
return "<pre><code>" + content + "</code></pre>"
end
end
Now I can pass the context in as the scope object instead of directly
using my Controller object. Turns out Haml donkey punches your scope
objects anyways, so I have to do this anyways.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---