You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kindly, Is there a way to save Mustache Templates in Database as (CouchDB) and how to do so ?
what is the advantages when using mustache instead of Liquid or ERB in Rails App ? is there any performance figures ?
Thanks,
Shenouda Bertel
The text was updated successfully, but these errors were encountered:
To work with Database, you need to put:
Mustache::Rails::Config.template_from_store = Proc.new{ |t| Page.find_by_slug(t).try(:content) || "not found" }
Mustache::Rails::Config.partial_from_store = Proc.new{ |t| Snippet.find_by_slug(t).try(:content) || "not found"}
in RAILS_ROOT/config/initialize/mustache.rb
Dears,
kindly, Is there a way to save Mustache Templates in Database as (CouchDB) and how to do so ?
what is the advantages when using mustache instead of Liquid or ERB in Rails App ? is there any performance figures ?
Thanks,
Shenouda Bertel
The text was updated successfully, but these errors were encountered: