2011-08-21

yvi: (Dreamwidth - Badass Dreamwidth dev)
[personal profile] yvi2011-08-21 04:26 pm

Getting rid of inline CSS/JS and CSS/JS in BML-files

Are there any ongoing projects for getting rid of inline CSS and JS and/or for transfering CSS/JS that is currently in BML files to its own files?

I just looked at the Manage Circle page and was quite surprised that the CSS and the JS for that page was in the BML file. I don't know whether opening a bug for it and putting those parts into their own file is something I can just do.
jeshyr: Pile of thick books labelled "Geek" (Geek)
[personal profile] jeshyr2011-08-21 11:13 pm
Entry tags:

Potentially Useful Do-Everything Script

[BTW: I am editing this post as the script is updated so refer back for further edits.]

I'm just a newbie at developing - submitted my first patch today - and one of the things one has to do to get up and running is to read about 5 tons of documentation and figure out workflows. Since I was having lots of potentially useful scripts suggested to me by developers and by the wiki and since I am at heart a toolmaker I put them all together and documented everything to the best of my ability.

I think this works but it's way past my bedtime right now and I haven't tested every single combination so if it eats your code, your data, or your firstborn child be in on your own head. OTOH I think it should work right!





For new folks, you need to copy everything in the text box above and paste it into a new file on your Dreamhack. I suggest you put it in the ~/bin directory and call the file 'dw', because then your system matches mine :). Then you need to make that file executable by typing 'chmod +755 ~/bin/dw' or whatever filename you used. After that you can type 'dw' and it should execute just fine, it'll give you instructions.



I would welcome fixes, constructive criticism, or anything else you have to offer. Feel free to use this in any way you want, etc.

r