Closed daslicht closed 10 years ago
@daslicht this is a limitation of Handlebars to not allow access to the root context. I'm working on a rewrite that will allow you to use the data
"channel" to pipe data through:
res.render('addPage', {
title: 'Blog',
date: moment().format('MM-DD-YYYY'),
posts: items,
data: {
activeid: '53963c600e91144721775c89'
}
});
thanks!
Hi, lets say we render a template like this:
How could we access
activeid
insinde this loop, please:any idea? maybe there is a better solution ?