Support start/end dashes in include_template tag #26

Closed
opened 2022-07-26 15:04:14 +00:00 by danieljsummers · 1 comment
danieljsummers commented 2022-07-26 15:04:14 +00:00 (Migrated from github.com)

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.

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 added the
wontfix
label 2024-08-25 00:50:43 +00:00

With the change from Liquid to Fluid (#47), include will be supported, so the custom include tag will no longer be needed.

With the change from Liquid to Fluid (#47), `include` will be supported, so the custom include tag will no longer be needed.
Sign in to join this conversation.
No description provided.