MCPcopy
hub / github.com/eudicots/Cactus / data

Method data

cactus/page.py:69–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 return os.path.join(self.site.build_path, self.build_path)
68
69 def data(self):
70 with io.FileIO(self.full_source_path, 'r') as f:
71 try:
72 return f.read().decode('utf-8')
73 except:
74 logger.warning("Template engine could not process page: %s", self.path, exc_info=True)
75 return u""
76
77 def context(self, data=None, extra=None):
78 """

Callers 2

contextMethod · 0.95
renderMethod · 0.95

Calls 1

readMethod · 0.80

Tested by

no test coverage detected