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