Hey there,
RighteousRaven a écrit :
> I'm somewhat surprised that the template class doesnt have that
> function, but Prototype already has a function called
Actually it's the first time we see someone need it. I certainly don't
see frequent use-cases for it.
> SymbolFragment = "(?:#{)(\w+)(?:})"
Although a valliant try :-), this won't work all that well on itself,
for two reasons:
- '{' is a special char, you'd need to escape it
- This doesn't account for \-based escaping of the #
- This relies on the default pattern only
See my previous reply for a working solution.
--
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---