Skip to content

Navigation breaks with multiple ".tpl"s #479

@nurullahakin

Description

@nurullahakin

If I use multiple .tpl in the include syntax, the created link to the included file isn't correct.

I suspect the extracted path from the syntax uses a greedy pattern matching, that is, it's looking for the last occurrence of the .tpl. However, this is wrong. Examine the following case:

{include file="dashboard.tpl" icon="svg/products.tpl"}

1

2

One should be able to pass a template path as a variable/value. However, this conflicts with the current behavior.

It'd be nice if it could just ignore other .tpls. It'd be great if it could create multiple "follow" links in one include syntax.


I'm not familiar with developing VSCode extensions, however, I don't want to wait till this gets solved/implemented. If there's a quick way for me to do some modification in the extension files and get it working, that would be great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions