MCPcopy Create free account
hub / github.com/PageBot/PageBot / build_css

Method build_css

Lib/pagebot/elements/element.py:838–847  ·  view source on GitHub ↗

Build the scss variables for this element and pass the request on to the child elements. This should harvest the CSS that is specific for a single page.

(self, view, cssList=None)

Source from the content-addressed store, hash-verified

836 '''
837
838 def build_css(self, view, cssList=None):
839 """Build the scss variables for this element and pass the request on
840 to the child elements. This should harvest the CSS that is specific
841 for a single page."""
842 if cssList is None:
843 cssList = []
844 for e in self.elements:
845 if e.show:
846 e.build_css(view, cssList)
847 return cssList
848
849 def asNormalizedJSON(self):
850 """Build self and all child elements as regular dict and add it to the

Callers 1

write_headMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected