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

Support start/end dashes in include_template tag #26

Open
danieljsummers opened this issue Jul 26, 2022 · 0 comments
Open

Support start/end dashes in include_template tag #26

danieljsummers opened this issue Jul 26, 2022 · 0 comments

Comments

@danieljsummers
Copy link
Collaborator

The Liquid templating language specifies that, if a tag starts with {%- or ends with -%}, if there is a line break immediately before or after that tag, it will not be preserved. Currently, the custom include_template tag does not support this, as it's implemented as a regular expression that is replaced when the template is initially read.

Modify the processing for this tag to support the no-new-line options the way other Liquid tags do.

@danieljsummers danieljsummers changed the title Let include_template support dashes in tag Support start/end dashes in include_template tag Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant