This is a minimal pattern for mockup. It does not much, except changing the html contents of a DOM element with a configurable test. It can be used to learn about mockup, the source code is annotated with comments.
Make sure, you have GNU make, node and git installed.
Then:
$ git clone https://github.com/collective/mockup-minimalpattern.git
$ cd mockup-minimalpattern
$ make bootstrap
Then:
$ make docs
$ python -m SimpleHTTPServer
$ chrome http://localhost:8000
- Resolve todo's in the code,
- Write an example test.