Totty got tired because:
- Templates by HTML were dirty;
- Difficult to put UI logic in it;
- Has to be in sync with the client framework in order to make DOM queries;
Then he think and solved:
- Used templates by objects: you create an object in javascript and then it renders itself; This object usually contain other objects that render themselves; Until it reaches the most basic parts: buttons, texts, boxes, layouts…
- All the UI logic is written in pure javascript;
- He write once and render both on client and on server, therefore no DOM queries are needed;
Leave a comment