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

gcode_macro: Enable jinja2.ext.do extension #26

Merged
merged 2 commits into from
Aug 27, 2023
Merged

Conversation

bwnance
Copy link
Contributor

@bwnance bwnance commented Aug 26, 2022

original PR: Klipper3d/klipper#5149

@r3Fuze please let us know if you are against having your changes merged into danger-klipper!

@r3Fuze
Copy link
Contributor

r3Fuze commented Aug 26, 2022

I don't mind 👍

@chestwood96
Copy link
Contributor

Should that not be at least mentioned in the documentation somewhere? Maybe even with the nice little danger marker if/once that gets approved?

While I don't know what exactly that extension does I am pretty sure it would cause makros not to be directly portable to regular klipper.

@bwnance
Copy link
Contributor Author

bwnance commented Sep 7, 2022

@chestwood96 it just adds support for a new do keyword to make statements clearer. Does not drop support for "do-less" statements, so no breaking changes.

@bwnance
Copy link
Contributor Author

bwnance commented Sep 7, 2022

I will add a section to the macro commands templates doc though

r3Fuze and others added 2 commits August 10, 2023 23:59
This adds a 'do' tag that works like a normal expression but ignores the return value.
Useful for avoiding running the output of an expression as a command.

Signed-off-by: Morten Lindhardt <[email protected]>
@rogerlz rogerlz merged commit bad4da6 into master Aug 27, 2023
2 checks passed
@rogerlz rogerlz deleted the r3Fuze-jinja_do_ext branch August 27, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants