mocofoteamlist
v0.0.2
Published
A module to load in a team list from a centrally managed location
Downloads
4
Readme
mocofoteamlist
npm install mocofoteamlist
var mocofoteamlist = require('mocofoteamlist');
mocofoteamlist.getHTMLSelectOptionsForTeams(function gotHTML (err, list) {
if (err) {
console.log(err);
}
// console.log(list);
// Do something, for example
// res.render('home', {
// list: list
// });
});
You should rended this list within a select tag
<select>
<option value="default">--Select</option>
{{{ RENDER THE RETURNED LIST HERE }}}
</select>