Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a catch-all render 'helper' with a default keyword argument #58

Open
robinsax opened this issue Aug 14, 2019 · 3 comments
Open

Add a catch-all render 'helper' with a default keyword argument #58

robinsax opened this issue Aug 14, 2019 · 3 comments

Comments

@robinsax
Copy link
Contributor

Current behaviour:

When no helper matches {{some_variable}} in a template, the output HTML contains the input string; {{some_variable}}

Expected behaviour:

When no helper matches {{some_variable}} in a template, the output HTML contains an empty string in its place. Template variables should universally support a default keyword argument, such that {{helperless_variable default="default value"}} outputs default value.

@hlainchb
Copy link
Member

The way it works now is without the default= part. So, {{helperless "default value"}}.

@robinsax
Copy link
Contributor Author

Ah, gotcha. I'd label this issue as documentation needed then.

@hlainchb
Copy link
Member

hlainchb commented Aug 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants