JoelOtter / kajero

Interactive JavaScript notebooks with clever graphing
Other
1.87k stars 110 forks source link

Support 'moustache' templates in text blocks #52

Open JoelOtter opened 8 years ago

JoelOtter commented 8 years ago

One suggestion from Hacker News was inline substitution of data in text blocks. A text block would be able to have the following Markdown:

The results show that there were {{this.numBadgers}} badgers, which implies...

This would allow values from probably either the data or this object to be included in text. I'll need to think about what this will look like when the value isn't defined though, due to the data not being fetched yet or the code block not having been run.