airbnb / knowledge-repo

A next-generation curated knowledge sharing platform for data scientists and other technical professions.
Apache License 2.0
5.47k stars 688 forks source link

Make templates more dynamic (user, dates, etc) #103

Open pteehan opened 7 years ago

pteehan commented 7 years ago

When creating a post with knowledge_post create, it would be nice if the created_at and updated_at dates were set to the current date.

matthewwardrop commented 7 years ago

Hey @pteehan,

Yeah... we need to make the templates more dynamic. Thanks for reminding us about this. I'll change the title of the issue to reflect the more general ambition, and we'll see if we cannot address it soon. :).

jordan-wright commented 6 years ago

I'd be happy to take a stab at this. What do we want dynamic templates to look like? It seems like the biggest lifts currently would be:

However, I could see this being even more powerful if we just treated these as Jinja templates and passed a reasonable context to them. Combined with FR #339, this would make the workflow of using templates much better.