On Jun 21, 11:09 am, Mike Robinson
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi,
>
> I need to be able to save email templates in the database so that my
> client can make changes to the layout and text using a WYSIWYG editor.
> What I would like to do is enable him to completely change the template
> but keep placeholders (something like {name} {email etc.).
>
> Does anyone know how to do this.
>
> Thanks
>
> Mike
Shopify uses Liquid for this. It''s simple to use, and you
don''t have
the danger of users entering any valid ruby code that gets blindly
evaled.
http://www.liquidmarkup.org/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---