Hi,
I've got this type of data
{
user: {
name: "David"
},
message: {
text: "Cool day with friends."
mentions: {
user: {
name: "John"
},
user: {
name: "Maria"
}
}
}
}
And I want to use a template to render the message with included templates to render the users. So how can I use the Mark.includes thing but with different context ?
In final, I would add something like this to my template :
Message from {{renderUser(user)}}: {{message}} (with {{mentions}}{{renderUser(.)}} {{/mentions}})
Any ideas ? 😃
Hi,
I've got this type of data
And I want to use a template to render the message with included templates to render the users. So how can I use the
Mark.includesthing but with different context ?In final, I would add something like this to my template :
Any ideas ? 😃