summaryrefslogtreecommitdiffstats
path: root/lib/backbone/page.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-27 10:24:06 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-27 10:24:06 +0100
commitf305d57ab7702c3ca10fd6e32366d19e524ee1f0 (patch)
tree381ccb09c7cedc72cdf8ad6c98b681b72f4d1bc0 /lib/backbone/page.js
parent877f2e477b010f9f37a9044606f110a90f077680 (diff)
downloadgitbook-f305d57ab7702c3ca10fd6e32366d19e524ee1f0.zip
gitbook-f305d57ab7702c3ca10fd6e32366d19e524ee1f0.tar.gz
gitbook-f305d57ab7702c3ca10fd6e32366d19e524ee1f0.tar.bz2
Add more classes structures
Diffstat (limited to 'lib/backbone/page.js')
-rw-r--r--lib/backbone/page.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/backbone/page.js b/lib/backbone/page.js
new file mode 100644
index 0000000..fdfe3f7
--- /dev/null
+++ b/lib/backbone/page.js
@@ -0,0 +1,15 @@
+
+/*
+A page represent a parsable file in the book (Markdown, Asciidoc, etc)
+*/
+
+function Page(book, filename) {
+ if (!(this instanceof Page)) return new Page();
+
+ this.book = book;
+ this.filename = filename;
+}
+
+
+
+module.exports = Page;