On 12/23/17, Peter MacDonald <pmacd...@gmail.com> wrote: > My project (jsish.org) requires defining a new extension .jsi that > maps to the same as .js. > This is so we can click on a link to example code, and have not download. > For example, the link to ./fileSize.jsi on this page: > > http://jsish.org/jsi/www/js-modules.wiki > > The only solution I could come up with was patching fossil (below). > Is there no better way?
The /doc page accepts a mimetype=? query parameter. I think. Double-check behind me. If I'm right, you should be able to add ?mimetype=text/plain to the link to have the text of the file displayed rather than loaded as javascript, or whatever it is you want to do. -- D. Richard Hipp d...@sqlite.org _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users