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 markers to identify the partial name #3700

Draft
wants to merge 1 commit into
base: 7.dev
Choose a base branch
from

Conversation

intoeetive
Copy link
Contributor

@intoeetive intoeetive commented Aug 14, 2023

@intoeetive intoeetive added this to the 7.5.0 milestone Aug 14, 2023
@@ -403,6 +403,8 @@ public function parse(&$str, $is_embed = false, $site_id = '', $is_layout = fals
'Snippet "' . $variable . '"'
);

$replace = $this->addSourceMarker($replace, $variable, $added_globals['template_type']);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this has potential to break templates (e.g. comment inside a comment, or when partial is used as a parameter for HTML tag), we need more precise control here.

At the minimum, we need to add config override and only add markers when it's set. Ideally, we might want to be able to control this on template level, like we do with front-end editing tags.

Or make it better code overall, aware of context and not break things

@bryannielsen bryannielsen modified the milestones: 7.5.0, 7.6.0 Jun 14, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants