tastejs/todomvc — pull request #964 by fpetrola (2014-08-08 04:53:46+00:00)
Title: Dragome TodoMVC initial commit

This an implementation of TodoMVC application for Dragome SDK (www.dragome.com).

Dragome is an open source tool for creating web applications in pure Java language. Based on bytecode to javascript compilation, you can execute applications written in Java directly on browsers.
Using the template engine combined with two way binding mechanism we can produce a very short implementation of the application.
There is just one small class for building the entire UI, and two other classes that represent Todo Item model and Todo Manager model.
HTML template is almost the same template that TodoMVC specification provides, the only difference are "data-template" attributes added to 16 tags to identify each dynamic part.
UI is created using component builders, which allows us to create the component, associate it to a template part, add event listeners, and repeat subtemplates if required.
Model binding is managed by a combination of Form Bindings module (based on gwt-pectin) and Method Logger (bytecode instrumentation plugin) for detecting getters and setters access.
It's not required the use of any explicit mechanism to detect changes over the model or UI, the built in two ways data binding takes track of each expression and execute it again when related value changes.