Functions§
- contains_
marker_ line - True when
contentcarriesmarkeras a whole (trimmed) line — the only form the writers emit. Use instead ofcontent.contains(marker)wherever “this file has the block” is meant. - remove_
content - remove_
from_ file - replace_
marked_ block - Replace the region between
startandendmarkers withreplacement(trim-aware newlines). If markers are missing or invalid, returnscontentunchanged. - upsert