robertd/esri-jsapi-rjs-example — pull request #5 by tomwayson (2013-12-16 16:30:15+00:00)
Title: added templated widget example. resolves #2

I've added an example of templated widget and tried the config options @odoe suggested to get r.js to inline the text. While r.js did **not** inline the text, it did recognize the template HTML file as a dependency and copied it over to the dist folder. That is one advantage over using Grunt, since you have to manually add a copy step for the templates.

While I'd really like to see the inline text working, I think this shows the value of r.js as an easy way to minfy the source files of Esri JSAPI apps. Those that want more fine grained control might prefer to manually configure Grunt with clean, uglify, copy, etc to accomplish the same.

I'm likely to stick w/ Grunt for existing projects where I've already gone through the process of setting up the config, but I might give this a go on my next project.