Twylite wrote: > Robert Ledger wrote: > With regard to the JavaScript musings of others ... why extend Fossil > with javascript, qtscript, whatever? That would just introduce another > back-end scripting language beside TH1 (Tcl-like scripting). If > server-side scripting is absolutely required (and you intended embedding > your script plugins in the repository so that the repo is > self-contained) why not use Jim (http://jim.berlios.de/) which is a > lightweight embeddable Tcl interpreter?
Yea, I just realized I was talking across purposes with some people; when I've been talking about javascript, it's been with fossil only as a file store for versioned .js, .css, etc. files, which are executed in the web browser's javascript environment, so no or at least very little additional code would need to be added to fossil. Although javascript has traditionally been used for display logic or interface with a backend server (ajax), it's a full language capable of anything any other language can do; for example, http://www.clipperz.com implements client-side encryption in javascript, tinymce implements client-side rich text html editor in javascript, etc. So when I've been talking about implementing wiki parsers in javascript, the implementation would be something like fossil storing a plain text file, without javascript turned on in the browser the page would just look like the plain text wiki markup, with it turned on it would be rendered in pretty HTML. Fossil would not need to have any knowledge of the wiki markup syntax, and updates to the parser could be developed and deployed completly separately from fossil releases; and if implemented in a sufficiently abstracted way, any other projects that wanted to support multiple wiki syntaxes could also use the javascript to do so (as they can plug tinymce in if they need a rich text html editor). -- Daniel JB Clark | Sys Admin, Free Software Foundation pobox.com/~dclark | http://www.fsf.org/about/staff#danny
signature.asc
Description: OpenPGP digital signature
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users