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.