-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Also serve CSS & images, auto-load CSS #56
base: master
Are you sure you want to change the base?
Conversation
i would be a fan of this! |
Why not |
+1 |
1 similar comment
+1 |
is this going to be merged? |
+1 |
I think css should be served from |
Good point. |
I implemented this on my fork (https://github.com/fuadsaud/dotjs/tree/dev). The behaviour differs a little, but the idea is the same. I put up some specs to and everything seems to be working fine. I'd appreciate if anyone would help with testing it. |
See stewart/dotcss |
If this get merged, please replace the .js directory with .dotjs and put there 3 folders called 'js', 'css' and 'images'. Would be the prettiest? |
Conflicts: bin/djsd ext/dotjs.js ext/manifest.json
Use 127.0.0.1 because localhost mapped to an IPV6 address in /etc/hosts
Hi Chris,
As discussed in #44 you're open to serving CSS & images but prefer a different location.
In this patch, CSS is served from ~/.js/css and images from ~/.jss/images. I've also updated the Chrome extension to auto-load CSS upon page load. No longer does one need to JS to insert style tags.
I hope you'll accept this patch and merge it in. It would also close #44.
Cheers,
@bartt