Open pteehan opened 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. :).
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:
created_at
and updated_at
when creating a new post (and maybe updating updated_at
when submitting the post, though this may be too opinionated)user
attributeHowever, 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.
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.