Namespace feature for DojoML has landed
Submitted by peller on Thu, 06/29/2006 - 00:01.
Namespace support in markup provides an exciting new way to extend Dojo. By creating your own namespace, you can package new widgets for Dojo so they may be embedded in a page with familiar XML markup:
<acme:button>Drop Anvil!</acme:button>
Similarly, these namespaces may be specified on the dojoType attribute:
<button dojoType="acme:button">Drop Anvil!</button>
See the namespaces test for an example, or consult the documentation in the Wiki currently under development.
In addition, namespaces now define mappings from widget names to JavaScript packages, such that dojo.require() statements are no longer necessary when using DojoML! You still must include dojo.widget.* for parser bootstrapping.
This feature is on the trunk for 0.4. Special thanks to Shane O'Sullivan (IBM Ireland) for this patch. The old style custom widgets will be deprecated.
- peller's blog
- Login or register to post comments
- Subscribe blog
- Subscribe post

[...] The latest code drop
[...] A quick note to say
The demo page 'froze' a bit
No, the namespaces code is
Changeset [4587] may have
FYI, there's a limitation on
Peller, Does that apply to
Guyz... What's this all
I'm looking for attributes
who - are you asking how