Forum: Ruby on Rails Mailer Template in Database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E75f527280dbc664528ac53169a59a8a?d=identicon&s=25 Mike Robinson (mikedigitalegg)
on 2007-06-21 18:09
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
821395fe70906c8290df7f18ac4ac6cf?d=identicon&s=25 Rick Olson (Guest)
on 2007-06-21 18:27
(Received via mailing list)
On Jun 21, 11:09 am, Mike Robinson <rails-mailing-l...@andreas-s.net>
wrote:
>
> 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/
This topic is locked and can not be replied to.