On 10/17/07, Christophe Porteneuve <[EMAIL PROTECTED]> wrote: > > > This being said, I don't think there's a massive reason to add this > orthogonal feature to Hash: people who want to use an actual Hash as a > source object to a template should pass myHash.toObject() instead of > just myHash...
Surely you don't mean this. Why couldn't I be able to write: template.evaluate(myData) ... regardless of whether myData is Object, Hash or some class instance that responds to "toTemplateElements"? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---