Skip to content

Potential partial fix for #120#121

Draft
ianjosephwilson wants to merge 3 commits into
t-strings:mainfrom
ianjosephwilson:ian/fix_for_120
Draft

Potential partial fix for #120#121
ianjosephwilson wants to merge 3 commits into
t-strings:mainfrom
ianjosephwilson:ian/fix_for_120

Conversation

@ianjosephwilson
Copy link
Copy Markdown
Contributor

This is close to what we tried in the parser before. I have to reach out to the SourceTracker to get the information which I guess is ok. This only pre-slices the children template it does not actually parse it. The parsing will happen if a component returns the template after processing and it is fed through the normal flow, ie. "_process_template()". I think we could probably go all-in somehow here and try to parse out all the component templates and feed them back into the cache but it seems like ... a lot. My original version of this didn't use TemplateRef it seems to fit here even if the strings might be a little redundant with the total template.

I'm going to think about this and maybe a better idea will come up. Maybe I'll try the "all-in" version and see if it looks better for some reason.

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.

2 participants