Add a method for fetching blog post contents

This commit is contained in:
Manuel Thalmann 2025-04-12 09:31:42 +02:00
parent c2e1f27302
commit c88e85f5ff
Signed by: manuth
SSH key fingerprint: SHA256:HsMLC+7kJWALP6YCYCoopxNbUnghwSGLVcG76SECT5c

View file

@ -14,6 +14,10 @@ impl Post {
pub fn add_text(&mut self, text: &str) {
self.content.push_str(text);
}
pub fn content(&self) -> &str {
""
}
}
trait State {}