title: How to build a custom widget using dojo build.sh
body: <p>Referencing the question <a href="https://stackoverflow.com/questions/25239453/cross-domain-loading-of-widget-template">Cross domain loading of widget template</a>,</p>
  
  <p>I want to build my template based custom widget using dojo build system (Just to get rid of xDomain errors). </p>
  
  <p>I am not able to understand how to do it,</p>
  
  <p>My Custom <code>dashboard.js</code> widget,</p>
  
  <pre><code>define([
       "dojo/_base/declare",
       "dijit/_WidgetBase",
       "dojox/dtl/_Templated",
  ], function (
          declare,
          WidgetBase,
          TemplatedMixin,
     ) {
     // rest of code and function 
     templateString: dojo.cache("myWidget.dashboard", "../templates/dashboard.html")
  });
  </code></pre>