mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
13 lines
278 B
JavaScript
13 lines
278 B
JavaScript
module.exports = {
|
|
getInitialState: function(input) {
|
|
return {
|
|
name: input.name
|
|
};
|
|
},
|
|
getTemplateData: function(state, input) {
|
|
return state;
|
|
},
|
|
setName: function(newName) {
|
|
this.setState('name', newName);
|
|
}
|
|
}; |