Skip to content

add safe text wrapper for template argument include that escapes any reserved symbols #498

@AnataBakka

Description

@AnataBakka

Feature summary (what you would like to be able to do and where):
when using include = {templateName}:arg, it would be preferrable to be able to wrap the arg around to ensure dpl can find it, for example by include = {templateName}:"arg", with any extra " inside the actual arg name being escapable by \. This ensures the user only has to worry about " and not any extra symbol dpl might use now or in the future.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
I have an argument called "Jak'Sho, The Protean", with the problem that it uses the comma , reserved symbol. I don't want to update the argument name, dpl should be able to easily extract it the way it is typed without any modifications.
I was able to fix it by replacing the comma with a dot ., which is not ideal.
I also had to replace :.

Benefits (why should this be implemented?):
Less clunky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions