sirprize/dojomat — pull request #4 by bugbot (2013-10-14 11:16:19+00:00)
Title: Proposal: set refNode and pageNodeId from the constructor

In my app I put some HTML code in the body (e.g. header and footer) before initializing the app in the `page` node. Then, the `page` node is initialized in the `last` position inside the `

`, as instructed in `Application.js:setPageNode()`.

In such case the resulting HTML will be:

```html

A pre-existing header

A pre-existing footer

```
while the `

` should stay in the last position, before closing the node.

A first solution could be setting the `Appliaction.js:refNode` in the application constructor, as follows:

```html

An header

The footer

```

(see the diff on how I would make it - I'm not a fan mixing args from the constructor, but this is more a dojo way for widgets and also it would allow to set the `pageNodeId`)

Feedback? I love the simplicity of dojomat and I'm worry to complicate it, but I'm trying to apply it to my use case that is a more complex application and I think this is a common case for many developers.