MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / read_post

Function read_post

scripts/website/blog_text.py:76–79  ·  view source on GitHub ↗

Read a post file and return (front_matter, body, body_start_line).

(path)

Source from the content-addressed store, hash-verified

74
75
76def read_post(path):
77 """Read a post file and return (front_matter, body, body_start_line)."""
78 with open(path, "r", encoding="utf-8") as fh:
79 return split_front_matter(fh.read())
80
81
82def body_to_html(body):

Callers 2

renderFunction · 0.90
check_fileFunction · 0.90

Calls 2

split_front_matterFunction · 0.85
readMethod · 0.65

Tested by

no test coverage detected