hadrienl/yoshioka.js — Issue #3: Automatise compileTpl
Author: hadrienl
Created: 2012-03-05 09:56:59+00:00
State: open

Remove compileTpl from renderUI and set it inside container attribute valueFn function.

Use a constant array as default params to pass to compileTpl.

A view would be specified like that :

Y.MyView = Y.extend(MyView, Y.ys.View,
{
template: {$myview.tpl},
tplAttrs: {
foo: FOO,
bar: BAR,
}
});