yourhead / s3

public info about s3
8 stars 7 forks source link

refine the use of scope in custom library api #729

Closed yourhead closed 7 years ago

yourhead commented 7 years ago

ExtraLib has always had a scope property. This is a refinement to define control the injection point by using the scope:

this provides a way of sharing the most commonly shared content from multiple stacks (css, js) without the need to add multiple head links or multiple copies as templates.

all library content is static. no templates.

yourhead commented 7 years ago

NB: injection to edit mode happens for each stack. this is to maintain a standalone dom element that contains both style and content for each node. this reduces the efficiency of using including css in many stacks, however there is little alternative. DOM isolation of nodes is likely to remain a hard limitation until webkit provides cocoa mechanism to utilize a shadow-DOM (and we all know that is never going to happen)

yourhead commented 7 years ago

in beta 17