More testing. I added "json" as mimetype. Not sure if that was necessary.

But, when I navigate with TS down the directory, I find that it can't load:

%24%3A%2Fplugins%2FMAS%2FTEST.json

So, maybe TS doesn't like these special characters?

When I changed the name to TEST.json, then even though I can browse the 
file with either TS or http-server, I couldn't load it as a library with 
either server. So apparently the url-encoded name structure is important 
for some reason.

Is there any reason that TS wouldn't be able to load files with url-encoded 
names?

Thanks!

On Friday, May 1, 2020 at 11:45:20 AM UTC-7, Mark S. wrote:
>
> I'm trying to serve up a plugin *library*. A library is an index.html 
> file with specified directories below it, and some tid files in those 
> directories. Data folders do not have to be involved at all. Just the 
> static server part of TS.
>
> I can accomplish this already by running http-server on node, but that 
> means I have to have two servers running (TS and http-server). It would be 
> convenient if I could just run TS. I set a virtual "library" in 
> settings.json that points to the directory containing the index.html file. 
> I put this path into the url field of a tiddler tagged 
> $:/tags/PluginLibrary. Now I can go into the plugins under control panel 
> and click on "Get More Plugins". It opens up and shows my new, personal 
> library. But when I attempt to install a plugin, it fails. 
>
> Ok, I just ran a test. It appears that TS won't serve up JSON files. So 
> maybe my question is, how do I enable TS to serve JSON files?
>
> Thanks!
>
> On Friday, May 1, 2020 at 11:26:01 AM UTC-7, Arlen Beiler wrote:
>>
>> TiddlyServer will not serve files within data folders, that is the data 
>> folder's job. 
>>
>> But it doesn't make sense that you would be trying to serve plugin 
>> tiddlers from within a data folder, so I'm not quite sure what you're 
>> asking. 
>>
>> On Fri, May 1, 2020, 11:57 'Mark S.' via TiddlyWiki <
>> tiddlywiki@googlegroups.com> wrote:
>>
>>>
>>> I'm trying to have TS serve up a plugin library.
>>>
>>> Everything seems to work, except TS doesn't actually serve up the plugin 
>>> tiddlers.
>>>
>>> I think the problem is that TS isn't serving up static files from 
>>> sub-directories. Is there a setting that will tell TS to serve up static 
>>> files more than one level deep?
>>>
>>> Thanks!
>>>
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to tiddlywiki+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/21a0177e-4165-48a4-b1b4-1db59caba7b9%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/tiddlywiki/21a0177e-4165-48a4-b1b4-1db59caba7b9%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6d9e4ae1-70a7-422b-bc0e-54505f332b66%40googlegroups.com.

Reply via email to