mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-28 09:30:07 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
dd27bc4785
commit
27088e7a70
10
Makefile
10
Makefile
@ -1,9 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
BOOTSTRAP_FILES := \
|
||||||
|
$(wildcard bootstrap/*) \
|
||||||
|
$(wildcard bootstrap/*/*) \
|
||||||
|
README.md
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
bootstrap.js: scripts/bootstrap.js $(BOOTSTRAP_FILES)
|
||||||
bootstrap.js: scripts/bootstrap.js
|
|
||||||
node $<
|
node $<
|
||||||
|
|
||||||
|
|
||||||
@ -16,7 +21,6 @@ node_modules:
|
|||||||
npm install
|
npm install
|
||||||
|
|
||||||
|
|
||||||
# XXX is this a good idea???
|
|
||||||
dev: node_modules
|
dev: node_modules
|
||||||
cp $</ig-object/object.js lib/
|
cp $</ig-object/object.js lib/
|
||||||
cp $</ig-actions/actions.js lib/
|
cp $</ig-actions/actions.js lib/
|
||||||
|
|||||||
@ -21,7 +21,7 @@ are likely to change, the implementation / API **will definitely** change! ;)_
|
|||||||
A set of tools and API's to enable data synchronization between pWiki
|
A set of tools and API's to enable data synchronization between pWiki
|
||||||
instances.
|
instances.
|
||||||
|
|
||||||
- _Self-hosted_ and flexible user interface
|
- _Self-hosted[*]_ and flexible user interface
|
||||||
|
|
||||||
The pWiki interface is implemented as a set of pWiki pages and
|
The pWiki interface is implemented as a set of pWiki pages and
|
||||||
templates within pWiki itself (see: [Templates] / [/bootstrap](bootstrap)),
|
templates within pWiki itself (see: [Templates] / [/bootstrap](bootstrap)),
|
||||||
@ -29,6 +29,9 @@ are likely to change, the implementation / API **will definitely** change! ;)_
|
|||||||
the function of the interface from within pWiki, without touching the
|
the function of the interface from within pWiki, without touching the
|
||||||
code.
|
code.
|
||||||
|
|
||||||
|
[*]: "Self-hosted" here is meant in the old-school meaning of the word,
|
||||||
|
i.e. hosted on the client.
|
||||||
|
|
||||||
- pWiki _portable app_
|
- pWiki _portable app_
|
||||||
|
|
||||||
This is a simple note / todo / outline app.
|
This is a simple note / todo / outline app.
|
||||||
|
|||||||
2
bootstrap.js
vendored
2
bootstrap.js
vendored
File diff suppressed because one or more lines are too long
@ -508,12 +508,14 @@ function*(str){
|
|||||||
|
|
||||||
|
|
||||||
// XXX need context -- page/store...
|
// XXX need context -- page/store...
|
||||||
// XXX blocks are not handled correctly...
|
// XXX need to make this recursive....
|
||||||
|
// ...might even be a good idea to make the above grouo(..) and friends
|
||||||
|
// recursive too...
|
||||||
// XXX closure: macros
|
// XXX closure: macros
|
||||||
var expand =
|
var expand =
|
||||||
module.expand =
|
module.expand =
|
||||||
function*(ast){
|
function*(ast){
|
||||||
// XXX
|
// XXX PAGE...
|
||||||
var page
|
var page
|
||||||
while(true){
|
while(true){
|
||||||
var {value, done} = ast.next()
|
var {value, done} = ast.next()
|
||||||
@ -525,8 +527,9 @@ function*(ast){
|
|||||||
continue }
|
continue }
|
||||||
// macro...
|
// macro...
|
||||||
var {name, args, body, match} = value
|
var {name, args, body, match} = value
|
||||||
|
// XXX PAGE...
|
||||||
var res =
|
var res =
|
||||||
macros[name](page, args, body, match)
|
macros[name].call(page, args, body, match)
|
||||||
?? ''
|
?? ''
|
||||||
// XXX test if iterable...
|
// XXX test if iterable...
|
||||||
if(res instanceof Array){
|
if(res instanceof Array){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user