Next generation templates for UI should not only String Builder for HTML.
We should use progressive enhancement.
1) String Builder mode
As in original version, we should support generating HTML to string and than pasting it into the DOM. This mode will be compatible for both server and client rendering mode.
2) Manual DOM manipulation
A views can have named controls. These controls can that be accessed after rendering is completed. Such controls can than modify DOM. Eg.: TextBox can read and write current value.
This mode will be available in client mode. Also, we should try to support rebuilding javascript instance of view from server rendered HTML.
3) Two way binding
As an enriched mode of number 2, we would create a two way binding between model and UI.
This mode is suspect to discussion.
Next generation templates for UI should not only String Builder for HTML.
We should use progressive enhancement.
1) String Builder mode
As in original version, we should support generating HTML to
stringand than pasting it into the DOM. This mode will be compatible for both server and client rendering mode.2) Manual DOM manipulation
A views can have named controls. These controls can that be accessed after rendering is completed. Such controls can than modify DOM. Eg.: TextBox can read and write current value.
This mode will be available in client mode. Also, we should try to support rebuilding javascript instance of view from server rendered HTML.
3) Two way binding
As an enriched mode of number 2, we would create a two way binding between model and UI.
This mode is suspect to discussion.