forked from ccampbell/html-muncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
81 lines (57 loc) · 1.43 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
--------------
ABOUT
--------------
HTML Muncher is a Python utility that rewrites CSS, HTML, and JavaScript files in order to save precious bytes and obfuscate your code
if your stylesheet starts out looking like this:
.file2 #special {
font-size: 1.5em;
color: #F737FF;
}
.file2 #special2 {
letter-spacing: 0;
}
.box {
border: 2px solid #aaa;
-webkit-border-radius: 5px;
background: #eee;
padding: 5px;
}
it will be rewritten as
.a #a {
font-size: 1.5em;
color: #F737FF;
}
.a #b {
letter-spacing: 0;
}
.b {
border: 2px solid #aaa;
-webkit-border-radius: 5px;
background: #eee;
padding: 5px;
}
--------------
INSTALLATION
--------------
easy_install http://htmlmuncher.com/htmlmuncher.egg
OR:
download the source from http://github.com/ccampbell/html-muncher
cd html-muncher
python setup.py install
--------------
USAGE
--------------
http://htmlmuncher.com/#usage
OR:
munch --help
--------------
EXAMPLES
--------------
to update a bunch of stylesheets and views:
munch --css demo/css --html demo/views
to update a single file with inline styles/javascript:
munch --html demo/single-file/view-with-inline-styles.html
you can also select specific files:
munch --css file1.css,file2.css --html view1.html,view2.html
or you can mix and match files and directories
munch --css /my/css/directory,global.css --html /view/directory1,/view/directory2,/view/directory3,template.html