diff options
author | 2024-04-24 15:42:25 +0200 | |
---|---|---|
committer | 2024-04-25 11:33:30 +0200 | |
commit | 11fe339cc3bfa8836cb7c394f63afbaf933a9a41 (patch) | |
tree | 581f04d380958dc16b0e6e3573254232bae96d0d /page.rb | |
parent | d353991bd927da30c4e883deb19d065ba9db4041 (diff) | |
download | hyde-11fe339cc3bfa8836cb7c394f63afbaf933a9a41.tar.gz hyde-11fe339cc3bfa8836cb7c394f63afbaf933a9a41.zip |
Add renderContent in Page class
Diffstat (limited to 'page.rb')
-rw-r--r-- | page.rb | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -64,6 +64,8 @@ class Page end end + private + def parseConfig(configFile) if (File.exist?(configFile)) config = YAML.load_file(configFile) @@ -84,6 +86,12 @@ class Page end end + def renderContent + return @content&.strip || @content + end + + protected + attr_writer :fileName attr_writer :title attr_writer :pageNames |