Insert can be function or string

If it's a function, it will be executed once after beforeRender. If
it's a string, it will be used to determine how the element will be
inserted to the parent.