using erb/haml methods from a service layer

4 views
Skip to first unread message

ssswdon

unread,
Jan 27, 2012, 12:54:40 PM1/27/12
to sina...@googlegroups.com
I am trying to use the erb method in an email_service that gets called from one of my routes. The problem I am having is trying to use the erb method from the Templates module. I was able to include the templates but complain template_cache.

If there a clean way to use erb/haml methods in a module so I can include in my class. 

At first I had all my code deoendant on Sinatra::base being fired up but I am now refactoring into 

/model/*
/helpers/*
/lib/*
....

Any help would be appreciated.


Reply all
Reply to author
Forward
0 new messages