aboutsummaryrefslogtreecommitdiff
path: root/page.rb
diff options
context:
space:
mode:
Diffstat (limited to 'page.rb')
-rw-r--r--page.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/page.rb b/page.rb
index 6445c25..2f40c44 100644
--- a/page.rb
+++ b/page.rb
@@ -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