mirror of
https://github.com/flynx/pWiki.git
synced 2026-08-24 16:26:42 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c251efe1a5
commit
5c2a7ca7d1
@ -1371,14 +1371,15 @@ module.parser = {
|
|||||||
// get and run things...
|
// get and run things...
|
||||||
return Promise.awaitOrRun(
|
return Promise.awaitOrRun(
|
||||||
page.get(src).matched,
|
page.get(src).matched,
|
||||||
|
// XXX push this to a later stage -- we might not even need it...
|
||||||
page.get(src).raw,
|
page.get(src).raw,
|
||||||
function(paths, pages){
|
function(paths, texts){
|
||||||
paths = paths instanceof Array ?
|
paths = paths instanceof Array ?
|
||||||
paths
|
paths
|
||||||
: [paths]
|
: [paths]
|
||||||
pages = pages instanceof Array ?
|
texts = texts instanceof Array ?
|
||||||
pages
|
texts
|
||||||
: [pages]
|
: [texts]
|
||||||
return Promise.awaitOrRun(
|
return Promise.awaitOrRun(
|
||||||
// handle pages...
|
// handle pages...
|
||||||
Promise
|
Promise
|
||||||
@ -1386,7 +1387,7 @@ module.parser = {
|
|||||||
that.joinBlocks(
|
that.joinBlocks(
|
||||||
page,
|
page,
|
||||||
Array
|
Array
|
||||||
.zip(paths, pages)
|
.zip(paths, texts)
|
||||||
.map(pageHandler),
|
.map(pageHandler),
|
||||||
args.join,
|
args.join,
|
||||||
state))
|
state))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user