Adding initial dojo demo1 to show issues with dojo/text.

This commit is contained in:
Tomasz Półgrabia 2021-12-19 14:29:44 +01:00
commit 08c046f6c6
7 changed files with 843 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<div>
Hello World!!!
</div>

View file

@ -0,0 +1,10 @@
define([
"dijit/_TemplatedMixin",
"dijit/_WidgetBase",
"dojo/_base/declare",
"dojo/text!./MainWidget.html"
], function(_TemplatedMixin, _WidgetBase, declare, template) {
return declare("app/widgets/MainWidget", [_WidgetBase, _TemplatedMixin], {
templateString: template
});
});

View file

@ -0,0 +1,3 @@
https://github.com/dojo/dojo/blame/master/dojo.js#L1069
why we use baseUrl of dojo itself (not from dojo config) instead of using mapping from dojo config like in packages and finally baseUrl (from dojo config) if not found???