Skip to content

Allow undeclared parameters to be defaulted #66

Description

@D-B-S

It would be really useful if you could set any null parameters to a default value. For instance:

snippet.html could contain:

<p>@@one</p>
<p>@@two</p>

And be included via:
@@include("snippet.html", {"one":"text"})

Currently, as nothing is passed in for @@two this will will display:

text
@@two

It would be nice to be able to define a default value for parameters, so any missing parameters can be treated as a blank string by default (or have some default text entered) rather than showing the unused @@ variable in the output.

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