Skip to content

Also serve CSS & images, auto-load CSS#56

Open
bartt wants to merge 8 commits intodefunkt:masterfrom
bartt:css-images
Open

Also serve CSS & images, auto-load CSS#56
bartt wants to merge 8 commits intodefunkt:masterfrom
bartt:css-images

Conversation

@bartt
Copy link
Copy Markdown

@bartt bartt commented Dec 6, 2011

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

@jm3
Copy link
Copy Markdown

jm3 commented Jan 10, 2012

i would be a fan of this!

@kennethreitz
Copy link
Copy Markdown

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

@jescalan
Copy link
Copy Markdown

+1

1 similar comment
@matthewhadley
Copy link
Copy Markdown

+1

@fuadsaud
Copy link
Copy Markdown

is this going to be merged?

@unimatrixZxero
Copy link
Copy Markdown

+1

@sheerun
Copy link
Copy Markdown

sheerun commented May 14, 2013

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

@unimatrixZxero
Copy link
Copy Markdown

Good point.

@fuadsaud
Copy link
Copy Markdown

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.

@julionc
Copy link
Copy Markdown

julionc commented Jun 26, 2013

See stewart/dotcss

@Atrox
Copy link
Copy Markdown

Atrox commented Aug 14, 2014

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?
👍 for the Idea!

Bart Teeuwisse added 2 commits December 11, 2014 15:01
Conflicts:
	bin/djsd
	ext/dotjs.js
	ext/manifest.json
Use 127.0.0.1 because localhost mapped to an IPV6 address in /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants