bwnjsejs:passing_custom_data_through_routes
app.locals(.appdata) non disponible dans routes/
//routes/index.js (...) var appdata = require('path/to/data.json');
(html) <% if (some.data.length > 0 { %> <% for (i=0; i<some.data.length; i++) { %> <li>some.data[i] <% } %> <% } %>
bwnjsejs/passing_custom_data_through_routes.txt · Last modified: 2016/06/12 18:26 by leo