From 49eb8f7a2d71a75d039fe0cf625c1bfc3e072a20 Mon Sep 17 00:00:00 2001 From: Dave Winer Date: Sat, 30 Jul 2016 11:51:21 -0400 Subject: [PATCH] v0.70 --- docs/config.md | 70 +++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 64 insertions(+), 6 deletions(-) diff --git a/docs/config.md b/docs/config.md index 188f1af..c634680 100644 --- a/docs/config.md +++ b/docs/config.md @@ -10,8 +10,6 @@ All the values described here are added to a config.json file that's stored at t The extension of a file determines how PagePark serves it. - - @@ -74,7 +72,29 @@ The text in the file is returned, the type is application/json. + + + + + + + + + + @@ -102,13 +122,51 @@ The outline is rendered as an expandable outline, the type returned is text/html -
-demo.json +wodemo.json + +
+ +.png + + + +The contents of the file is returned with type image/png. + + + +tree.png
+ + +.md -Any page can be written in JavaScript. + -PagePark runs the script, and then returns the value it returns, which usually is HTML text. + + +The text in the file is passed through a Markdown processor and that text is returned. The type returned is text/html. + + + + + +test.md + + + + + + + + + +.js + + + + + +We run the script, and the return value is returned to the caller, with type of text/html. Here's the source code for the script in the demo below. + + + + + +butt.js + + + + + + #### flProcessScriptFiles