title: Use attach point
body: <p>I'm newbie to dojo. I have created widget and executed it successfully. But now I want to use the concept of attach point here. Below is my code</p>
  
  <h2>practice.html</h2>
  
  <pre><code>&lt;div&gt;
  
  
  &lt;/div&gt;
  </code></pre>
  
  <h2>practice.js</h2>
  
  <pre><code>define([ "dojo/_base/declare"
       , "dojo/text!./practice.html"
       , "dijit/_WidgetBase"
       , "dijit/_TemplatedMixin" 
       , "dijit/_WidgetsInTemplateMixin"
  
      ], function(declare, _templateString, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin)
      {
      function trace(msg) {
  
          console.log("practice:", msg, arguments);
      }
  
      function Controller(w) {
          function myPractice(){
              alert("My Practice");
          }
  
      this.myPractice = myPractice;       
      }
  
  
  
      var d = 
      declare("Practice.practice", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin],  {
          widgetsInTemplate: true,
          templateString: _templateString
          , constructor: function(args) {
              declare.safeMixin(this, args);
          },
          postCreate: function(){
              this.inherited(arguments);
              var controller = new Controller(this);
              //controller.myPractice();
              this.myPractice = controller.myPractice;
      }
      });
      return d;
  });
  </code></pre>
  
  <p>And I'm executing this by using test.html</p>
  
  <h2>test.html</h2>
  
  <pre><code>&lt;html &gt;
  &lt;head&gt;
  
      &lt;link rel="stylesheet" href="D:/dojofiles/dijit/themes/claro/claro.css"&gt;
  
      &lt;script&gt;dojoConfig = {parseOnLoad: true}&lt;/script&gt;
      &lt;script src="D:/dojofiles/dojo/dojo.js"&gt;&lt;/script&gt;
  
  
      &lt;script&gt;
  
          showMyForm = function(){
  
              require(["Practice/practice"], 
              function(practice){
  
                  var myObj = new practice();
                  myObj.myPractice();
              });
  
          }
          showMyForm();       
  
      &lt;/script&gt;
  
  
  &lt;/head&gt;
  &lt;body class="claro"&gt;
  
      &lt;div id="myId" enctype="multipart/form-data" action="" method="POST"&gt;
  
  &lt;/body&gt;
  &lt;/html
  </code></pre>
  
  <p>Where and how can I add <code>data-dojo-attach-point</code> and use it to execute my widget?</p>