Starting to use snippet builders to populate the page.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2022-02-05 18:20:48 -05:00
parent 27deeed6b3
commit 4daeb295a2

View File

@ -101,12 +101,13 @@ LePage >> options [
{ #category : #'*Grafoscopio-Utils-Core' } { #category : #'*Grafoscopio-Utils-Core' }
LePage >> populateChildrenFrom: docTreeDivs [ LePage >> populateChildrenFrom: docTreeDivs [
docTreeDivs doWithIndex: [:div :i | | snippet parent | docTreeDivs doWithIndex: [:div :i | | snippetTemp "parent surrogate" |
snippet := LeSnippet fromMetaMarkdeep:div. snippetTemp := LeSnippet fromMetaMarkdeep:div.
self children "self children
addSnippet: snippet beforeIndex: i. addSnippet: snippet beforeIndex: i."
parent := self detectSnippetWithUid: (snippet metadata at: 'parent'). self snippetBuilder snippet: snippetTemp; add.
snippet parent: parent. "surrogate := self detectSnippetWithUid: (snippetTemp metadata at: 'parent').
parent := self snippetBuilder snippet: surrogate."
] ]
] ]