Minimal inheritance for core Templates

I think this is a very minor and intuitive syntactic addition that would enable so many workflows.

Use case or problem

Enabling template inheritance (similar to child classes in object-oriented approaches).

Proposed solution

Add a directive {{[[link to parent template]]}} that applies the linked template to the current one (calling the import template command).

Current workaround (optional)

  1. Calling the insert template command multiple times and manually selecting each parent template in the correct order.
  2. Templater plugin (which I think is way overkill for this).

Related feature requests (optional)

2 Likes

Another workaround:

  • Make multiple variant templates. (Prepare for tedium when you change the part they have in common.)

I have a bunch of variant templates for different types of log entries, media types, and projects. I would love to be able to make templates for the common parts they share.

I’m surprised there isn’t already a request for this! I thought there must be but I don’t see one.

2 Likes