Thanks.
]]>in JSHttpApiServer.dpr line 169 add this code:
if (FileName = '') then FileName := 'index.html';
Thank you for replying.
]]>if (FileName = '') then FileName := 'index.html';
In project 22, can anyone suggest how to achieve auto direct user to login page from "root context"?
I mean if user types in browser-url "http://localhost:888/root", I would expect my login page to load (index.html).
And do not worry for the comments - it is the first time someone outside me is commited something, and this is another great news!
]]>Run sample, point browser to http://localhost:888/root/readme.md - response is MarkDown template rendered by SpiderMonkey.
DLL is here http://synopse.info/files/synsm.7z
Tested only for Delphi7 but hope it work with other versions.
AB - Sorry for commit comments - this is my first usage of fossil - I miss autosync is on.
]]>Why SpiderMonkey
I look at many engine before chose SpiderMonkey.
- pure Delphi Besen http://code.google.com/p/besen/ ( bad performance speed/memory compared to V8 & SM)
- V8 (C++ hard to integrate with Delphi)
- Microsoft scripting host ( COM / poor API / bad performance / only for Windows)
I choose SpiderMonkey because:
- Stability. It is the oldest, most heavily tuned engine available.
- Open source with HUGE community.
- C API – easy to integrate with Delphi
- ECMA-262 Edition 5 (and Harmony soon)
- It is very fast. Really VERY fast.