diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-23 11:22:20 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-23 11:22:20 +0200 |
commit | ce95f316b9ce1eac1e615db3540c4d0f30408d63 (patch) | |
tree | 2cb773317a937887c216d93afd6d92fcdca64475 /lib/api | |
parent | a162af5a75453a6ecb818447540cbffdc774715f (diff) | |
download | gitbook-ce95f316b9ce1eac1e615db3540c4d0f30408d63.zip gitbook-ce95f316b9ce1eac1e615db3540c4d0f30408d63.tar.gz gitbook-ce95f316b9ce1eac1e615db3540c4d0f30408d63.tar.bz2 |
Add method to be article by level
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/decodePage.js | 15 | ||||
-rw-r--r-- | lib/api/encodePage.js | 14 | ||||
-rw-r--r-- | lib/api/index.js | 6 |
3 files changed, 33 insertions, 2 deletions
diff --git a/lib/api/decodePage.js b/lib/api/decodePage.js new file mode 100644 index 0000000..b9941c1 --- /dev/null +++ b/lib/api/decodePage.js @@ -0,0 +1,15 @@ + +/** + Decode changes from a JS API to a page boject + + @param {Output} output + @param {Page} page + @param {Object} result + @return {Page} +*/ +function decodePage(output, page, result) { + + +} + +module.exports = decodePage; diff --git a/lib/api/encodePage.js b/lib/api/encodePage.js new file mode 100644 index 0000000..9ec55bc --- /dev/null +++ b/lib/api/encodePage.js @@ -0,0 +1,14 @@ + +/** + Encode a page in a context to a JS API + + @param {Output} output + @param {Page} page + @return {Object} +*/ +function encodePage(output, page) { + + +} + +module.exports = encodePage; diff --git a/lib/api/index.js b/lib/api/index.js index 8b4f0ff..213ef1a 100644 --- a/lib/api/index.js +++ b/lib/api/index.js @@ -1,3 +1,5 @@ - -module.exports = {}; +module.exports = { + encodePage: require('./encodePage'), + decodePage: require('./decodePage') +}; |