I built a small app using Datastar.zig. While I can return a page with the HTTPRequest's html function. I could not use it send a (.css) style sheet successfully.
The html function does send the .css file to the client, the file is not recognized as CSS since the content type is "text/html" not "text/css".
Perhaps a more general function that allows the user to specify the content type would be helpful.
I built a small app using Datastar.zig. While I can return a page with the HTTPRequest's
htmlfunction. I could not use it send a (.css) style sheet successfully.The
htmlfunction does send the.cssfile to the client, the file is not recognized as CSS since the content type is "text/html" not "text/css".Perhaps a more general function that allows the user to specify the content type would be helpful.