roperzh/marionette_dust-rails — pull request #4 by dmikrot (2014-03-28 04:45:34+00:00)
Title: Prefer using dust cached templates instead of JST

I was having a lot of trouble because the templates were not loading before my Views were trying to render them. I refactored the TiltDust template so that it would create self executing dust templates if the file doesn't have jst as one of it's extensions. This way, the templates are immediately loaded and cached by dust. I added a unit test for TiltDust, since it didn't have one.

I also refactored the Marionette Renderer to use the dust cached templates if it is loaded instead of always going through JST. This is marionette_dust, not marionette_JST_dust, after all.

Since I added this functionality I changed the generators to generate view.dust instead of view.jst.dust.
Also removed and ignored the files that the unit tests create, so they don't show up as modified or untracked.