3 ms·
>> we would need to roll our own Mustache template compiler > I'm not sure if I understand this point but why not just use Sprockets to compile templates? Or w
by bear454 14y ago
>> we would need to roll our own Mustache template compiler
> I'm not sure if I understand this point but why not just use Sprockets to compile templates? Or what do they mean by 'own [...] template compiler'?
We'll be using the same partials for both server-side and client-side rendering. Its enough we have to have two sets of controllers, and two sets of models; I'm not about to maintain two sets of views as well.
- 33degrees 14y agoNo need to roll your own, there are solutions out there already: https://github.com/railsware/smt_rails https://github.com/railsware/smt_rails, and surely others by this point