diff options
Diffstat (limited to 'lib/parse/parsePage.js')
-rw-r--r-- | lib/parse/parsePage.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/parse/parsePage.js b/lib/parse/parsePage.js deleted file mode 100644 index fdc56a3..0000000 --- a/lib/parse/parsePage.js +++ /dev/null @@ -1,21 +0,0 @@ -var parsePageFromString = require('./parsePageFromString'); - -/** - * Parse a page, read its content and parse the YAMl header - * - * @param {Book} book - * @param {Page} page - * @return {Promise<Page>} - */ -function parsePage(book, page) { - var fs = book.getContentFS(); - var file = page.getFile(); - - return fs.readAsString(file.getPath()) - .then(function(content) { - return parsePageFromString(page, content); - }); -} - - -module.exports = parsePage; |