shama/jmpress.js — Issue #14: template
Author: sokra
Created: 2012-01-24 22:30:54+00:00
State: open
Labels: feature

requires #13

set the data-xxx attributes on each step is noisy and much work.
Also with nested steps and relative positioning this may results in copy-paste.

A template mechanism could help.

### example

``` javascript
$.jmpress("template", "mytemplate", {
x: 1000, y: -2000, scale: 10,
children: [
{ x: -300, y: -100, scale: 0.2 },
{ x: -100, y: -100, scale: 0.2 },
{ x: 100, y: -100, scale: 0.2 },
{ x: 300, y: -100, scale: 0.2 },
]
});
```

``` html

...

...

...

...

```

### pros
* speration of design and content
* community can create templates for unexperienced users
* optional