Starting to use snippet builders to populate the page.
This commit is contained in:
parent
27deeed6b3
commit
4daeb295a2
@ -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."
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user