title: Dijit: Why am I getting an "Uncaught Error: Invalid Template"?
body: <p>I have a dijit that looks fine as far as I can tell, but it is raising <code>Uncaught Error: Invalid template</code> every time. I have not been able to figure out why. All variables (e.g. <code>${variableName}</code> are defined in the widget correctly.</p>
  
  <p>Here is the widget:</p>
  
  <pre><code>&lt;div class="${classPrefix}-wrapper"&gt;
      &lt;div class="${classPrefix} flair" dojoAttachPoint="flairNode"&gt;&lt;/div&gt;
      &lt;div class="${classPrefix}-count hidden" dojoAttachPoint="countWrapperNode"&gt;
          &lt;div class="count" dojoAttachPoint="countNode"&gt;0&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="${classPrefix} ${secondaryClass} action hidden" dojoAttachPoint="secondaryClickNode" dojoAttachEvent="onclick:_onSecondaryClick"&gt;
          &lt;div class="${classPrefix}-inner"&gt;&lt;/div&gt;
          &lt;div class="${classPrefix}-icon"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="${classPrefix} ${primaryClass} action" dojoAttachPoint="primaryClickNode" dojoAttachEvent="onclick:_onPrimaryClick"&gt;
          &lt;div class="${classPrefix}-inner"&gt;&lt;/div&gt;
          &lt;div class="${classPrefix}-icon"&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="${classPrefix}-message hidden" dojoAttachPoint="messageNode"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="${actionPromptNodeClass}" dojoAttachPoint="actionPromptMessageNode"&gt;
      &lt;span dojoAttachPoint="actionPromptMessage"&gt;${actionPromptText}&lt;/span&gt;
      &lt;span dojoAttachPoint="actionCompletedMessage" class="hidden"&gt;${actionCompletedText&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>