summaryrefslogtreecommitdiff
path: root/lib/VN3/Docs/Page.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/VN3/Docs/Page.pm')
-rw-r--r--lib/VN3/Docs/Page.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/VN3/Docs/Page.pm b/lib/VN3/Docs/Page.pm
new file mode 100644
index 00000000..0392434b
--- /dev/null
+++ b/lib/VN3/Docs/Page.pm
@@ -0,0 +1,23 @@
+package VN3::Docs::Page;
+
+use VN3::Prelude;
+use VN3::Docs::Lib;
+
+TUWF::get qr{/$DREV_RE} => sub {
+ my $d = entry d => tuwf->capture('id'), tuwf->capture('rev');
+ return tuwf->resNotFound if !$d || $d->{hidden};
+
+ Framework title => $d->{title},
+ sub {
+ Div class => 'row', sub {
+ Div class => 'fixed-size-left-sidebar-md doc-list', \&Sidebar;
+ Div class => 'col-md doc', sub {
+ EntryEdit d => $d;
+ H1 $d->{title};
+ Lit md2html $d->{content};
+ };
+ };
+ };
+};
+
+1;