summaryrefslogtreecommitdiff
path: root/lib/page_local.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 15:52:22 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-23 21:32:16 -0500
commitefbd3731c986a8555869c184cda69ff9b910ce9f (patch)
tree0fb2ab20c6618c120baac1d192ee5c5558fb1fe0 /lib/page_local.rb
parent7c62b0a53c35f2cfce07469fb771ef0aa8f2302d (diff)
pdf support
Diffstat (limited to 'lib/page_local.rb')
-rw-r--r--lib/page_local.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/page_local.rb b/lib/page_local.rb
index e956f6a..6c70ac3 100644
--- a/lib/page_local.rb
+++ b/lib/page_local.rb
@@ -16,6 +16,9 @@ class LocalPage < Page
return IndexPage::new(inpath)
when [".md", ".org"].include?(File::extname(inpath))
return LocalPage::new(inpath)
+ when ".pdf" == File::extname(inpath)
+ require 'page_pdf'
+ return PdfPage::new(inpath)
else
return nil
end