mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
31 lines
656 B
JavaScript
31 lines
656 B
JavaScript
var users = {
|
|
"0": {
|
|
name: "John B. Flowers",
|
|
occupation: "Clock repairer",
|
|
gender: "Male"
|
|
},
|
|
"1": {
|
|
name: "Pamela R. Rice",
|
|
occupation: "Cartographer",
|
|
gender: "Female"
|
|
},
|
|
"2": {
|
|
name: "Barbara C. Rigsby",
|
|
occupation: "Enrollment specialist",
|
|
gender: "Female"
|
|
},
|
|
"3": {
|
|
name: "Anthony J. Ward",
|
|
occupation: "Clinical laboratory technologist",
|
|
gender: "Male"
|
|
}
|
|
};
|
|
|
|
exports.templateData = {
|
|
userInfo: function (arg, done) {
|
|
setTimeout(function() {
|
|
done(null, users[arg.userId]);
|
|
}, 100);
|
|
}
|
|
};
|