dotjs icon indicating copy to clipboard operation
dotjs copied to clipboard

Also serve CSS & images, auto-load CSS

Open bartt opened this issue 13 years ago • 11 comments

Hi Chris,

As discussed in https://github.com/defunkt/dotjs/pull/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 https://github.com/defunkt/dotjs/pull/44.

Cheers,

@bartt

bartt avatar Dec 06 '11 07:12 bartt

i would be a fan of this!

jm3 avatar Jan 10 '12 04:01 jm3

Why not ~/.js/asssets or ~/.js/static?

kennethreitz avatar Jan 10 '12 05:01 kennethreitz

+1

jescalan avatar Oct 15 '12 14:10 jescalan

+1

matthewhadley avatar Feb 21 '13 05:02 matthewhadley

is this going to be merged?

fuadsaud avatar Feb 27 '13 20:02 fuadsaud

+1

unimatrixZxero avatar May 10 '13 07:05 unimatrixZxero

I think css should be served from ~/.css and images from ~/.images or the extension base directory should be renamed to ~/.dotjs

sheerun avatar May 14 '13 09:05 sheerun

Good point.

unimatrixZxero avatar May 14 '13 09:05 unimatrixZxero

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.

fuadsaud avatar May 21 '13 18:05 fuadsaud

See stewart/dotcss

julionc avatar Jun 26 '13 17:06 julionc

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? :+1: for the Idea!

Atrox avatar Aug 14 '14 12:08 Atrox