jimmycuadra/jquery-tmpl-rails — Issue #5: Improvement suggestion
Author: yhourdel
Created: 2012-03-06 09:23:41+00:00
State: open

Hi,

First, thanks a lot for your amazing job on that gem. I'm using it and it works (almost) like a charm. I just changed the naming of templates not to include folder name in the final name (to allow multiple styles switching) but for all other things its perfect.

I have a suggestion, though, that you may want to look at: I suggest you include helpers in the compilation process. Since templates are quite like views, I often need my helpers and I have to do things like
<% environment.context_class.instance_eval { include ApplicationHelper } %>
on top of every single template I create, which is ok for me but could be done in your gem, I suppose (and maybe with a way not to do it, like an option for instance).

Don't hesitate to challenge me on this.

Yann