[Dojo-interest] Question about custom templated widgets and parser.

Dylan Schiemann dylan at dojotoolkit.org
Fri Jun 13 18:02:27 EDT 2014

The parser is to scan HTML, look for widget definitions, and create widgets.

If you have a widget that instantiate programmatically, and within its
template, it contains widget definitions, then you simply use the
_WidgetsInTemplateMixin, which will automatically call the parser on the
template of your widget.

So, I think the answer is no, based on your question, but I'd need to
see the code to verify.


on 6/13/14, 13:29 (GMT-07:00) karozans said the following:
> Hi everyone.  I am not sure what I need to do in this situation.
> For almost every DOJO website I make, I always create an index.html page and
> I put a single DOJO module on it called Application.
> In Application, I load layout widgets and populate the layout dijit widgets
> as well as custom templated widgets that I have made.  That way everything I
> do is programmatically created, except of course my templates.
> I read somewhere that anytime you create a widget programmatically, you
> should always call the startup() function (especially on layout widgets) and
> anytime you create something declarative you need to call parser.parse();
> So my question is...
> When I create a custom templated widget, and put those into my application
> that is programatically created, do I still need to call parser.parse() at
> some point?
> Thanks
> --
> View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Question-about-custom-templated-widgets-and-parser-tp4002702.html
> Sent from the Dojo Toolkit mailing list archive at Nabble.com.

Dylan Schiemann
SitePen, Inc.
2014 Workshop schedule in the US, Canada, England and Switzerland:
SitePen Insider: http://sitepen.com/insider/

More information about the Dojo-interest mailing list