Hi

I'm finding rendering raw templates alongside processed templates to
be a fairly useful pattern as this allows me to parameterize the same
template both from within merb and from within the browser e.g. as a
response to an AJAX request.

So, given a template containing
hi <%= user.name %>

I want to render both
hi paul
and
hi <%= user.name %>

I'm currently rendering the raw template by using a combination of
File.read and _template_for, but I'm sure there's a better way.
I'd be very grateful for any suggestions.

Thanks

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to