title: How to access local variable from Dojo declarative widget
body: <p>I have a declarative Dijit calendar inside a custom widget, and I want to access a non-global variable from within <code>data-dojo-props</code> rather than needing to reference a global variable.</p>
  
  <p><strong>myWidgetTemplate.html:</strong></p>
  
  <pre><code>&lt;div class="${baseClass}" data-dojo-attach-point="wrapperNode"&gt;
  
      &lt;div data-dojo-type="dijit/Calendar" 
          data-dojo-attach-point="calWidget" 
          id="myCalendar" 
          data-dojo-props="isDisabledDate: myIsDisabledDate"&gt;&lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I can't access <code>myIsDisabledDate</code> unless it's in the global scope, which is...less than desirable. I can place my local method in my containing widget, and insert it by using a template field:</p>
  
  <pre><code>data-dojo-props="isDisabledDate: ${myIsDisabledDate}"
  </code></pre>
  
  <p>But this only works because I happen to be working in a widget template here. Is it possible to reference a variable/function that's in another module from a declarative widget in the page? I'd like to be able to do something like this:</p>
  
  <pre><code>data-dojo-props="isDisabledDate: uiModule.myIsDisabledDate"
  </code></pre>
  
  <p>How can I do that?</p>