dojo/text is an AMD plugin that loads string data from a file. It is the replacement for dojo/cache() from earlier versions of dojo.

define(["dojo/_base/declare", "dijit/_Widget", "dojo/text!dijit/templates/Dialog.html"],
  function(declare, _Widget, template){

    return declare(_Widget, {
      templateString: template

See Also

Table of Contents

Error in the documentation? Can’t find what you are looking for? Let us know!