summaryrefslogtreecommitdiffstats
path: root/lib/models/page.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/models/page.js')
-rw-r--r--lib/models/page.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/models/page.js b/lib/models/page.js
index 0a9cf38..ffb9601 100644
--- a/lib/models/page.js
+++ b/lib/models/page.js
@@ -32,6 +32,15 @@ Page.prototype.getDir = function() {
};
/**
+ Return path of the page
+
+ @return {String}
+*/
+Page.prototype.getPath = function() {
+ return this.getFile().getPath();
+};
+
+/**
Create a page for a file
@param {File} file