Skip to content
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

add .css and image file support #44

Closed
wants to merge 2 commits into from
Closed

add .css and image file support #44

wants to merge 2 commits into from

Conversation

anithri
Copy link

@anithri anithri commented Jul 9, 2011

djsd changed to also serve .css files from ~/css. and .gif|.jpg|.png files from ~/.images

NOTE! no changes to the extensions were made!

I only added the ability to call http://localhost:3131/arbitrary.css or http://localhost:3131/some-pic.png
and have them resolve from ~/.css and ~/.images

This should allow including .css files from scripts, host icon or badge elements you might be throwing up locally.

I'm conflicted about changing the extension to automatically attempt to load http://localhost:3131/google.com.css seems like it might be a good idea, but i don't know what the performance hit would be.

anithri added 2 commits July 9, 2011 15:13
…files from ~/.images

 Rakefile changed to create ~/.css and ~/.images dirs
 README.markdown changed to reflect new bonus functionality

 NOTE!  no changes to the extensions were made.
@sjl
Copy link

sjl commented Jul 14, 2011

This would be awesome.

@defunkt
Copy link
Owner

defunkt commented Aug 16, 2011

I like it.

What do you think about using ~/.js/images and ~/.js/css instead? Having a single directory can be convenient.

@kennethreitz
Copy link

~/.js/assets ?

@anithri
Copy link
Author

anithri commented Aug 17, 2011

Sure I'm not concerned about where the files live so long as I can get them into my browser. I'm a lot more worried about how I would make those changes and update this pull request, I'm just a yellow belt in git fu.

@bartt
Copy link

bartt commented Nov 28, 2011

I'd like to load CSS files based on domain name just like JS files are loaded. I can provide a pull request that uses ~/.js/css and ~/.js/images AND modifies the Chrome extension to also load CSS files. Should I just submit a different pull request?

@punassuming
Copy link

I second bartt's preference, I am a big fan of this in the FF port of dotjs.

@defunkt
Copy link
Owner

defunkt commented Aug 29, 2012

closing unless someone wants to update the paths

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.

6 participants