render-engine 2026.7.1a3
Legitimate static site generator package
“A Flexible Static Site Generator for Python”
imports Path from pathlibimports pathlib
SHA-256975922a64da2c8e669675f379e62b3ecf9bf955eb475441f27100457f02acc48
MaleculeH₂(CmPo₂)
Evidence
1import subprocess
2from collections.abc import Iterable
3from pathlib import Path
4
5from more_itertools import flatten
6
7from render_engine.content_managers import ContentManager
8
9
10class FileContentManager(ContentManager):
11 """Content manager for content stored on the file system as individual files"""
12
13 def __init__(
14 self,
15 content_path: Path …
26:25… gh in the collection's content path."""
27 return flatten([Path(self.content_path).glob(suffix) for suffix in self.include_suffixes])
28
29 @property
30 def pages(self) -> Iterable:
31 if self._pages i …
62:59… ry(content=content, **(metadata or {}))
63 filepath.write_text(parsed_content)
64 if editor:
65 subprocess.run([editor, filepath])
66 return f"New entry created at {filepath} ."
67
⋯5 lines
73 :param content: Content for the updated page
74 :param kwargs: Attributes to be included in the updated page
75 :return: String indicating that the page was updated.
76 """
77 self.create_entry(filepath=page.content_path, metadata=kwargs, content=content, update=True …
48:6… str: The title of the object.
49 """
50 return getattr(self, "title", self.__class__.__name__)
51
52 @property
53 def _slug(self) -> str:
54 """
55 The slugified path of th …
99:47… g}{self.extension}"
100
101 def url_for(self):
102 """
103 Placeholder method for generating the URL for the object.
104
105 This method should be implemented in subclasses.
⋯14 lines
No evidence locations were recorded for this file. Raw result