html5-starter 0.1.3b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/LICENSE +3 -0
  2. data/README.md +135 -0
  3. data/VERSION +1 -0
  4. data/lib/app/helpers/html5_boilerplate_helper.rb +47 -0
  5. data/lib/html5-boilerplate.rb +6 -0
  6. data/stylesheets/_html5-boilerplate.scss +15 -0
  7. data/stylesheets/html5-boilerplate/_fonts.scss +36 -0
  8. data/stylesheets/html5-boilerplate/_handheld.scss +8 -0
  9. data/stylesheets/html5-boilerplate/_helpers.scss +25 -0
  10. data/stylesheets/html5-boilerplate/_print.scss +20 -0
  11. data/stylesheets/html5-boilerplate/_reset.scss +50 -0
  12. data/stylesheets/html5-boilerplate/_styles.scss +100 -0
  13. data/templates/project/_flashes.html.haml +4 -0
  14. data/templates/project/_footer.html.haml +2 -0
  15. data/templates/project/_head.html.haml +32 -0
  16. data/templates/project/_header.html.haml +1 -0
  17. data/templates/project/_javascripts.html.haml +38 -0
  18. data/templates/project/_stylesheets.html.haml +8 -0
  19. data/templates/project/application.html.haml +15 -0
  20. data/templates/project/files/404.html +22 -0
  21. data/templates/project/files/apple-touch-icon.png +0 -0
  22. data/templates/project/files/build/build.xml +636 -0
  23. data/templates/project/files/build/buildinfo.properties +5 -0
  24. data/templates/project/files/build/config/build.properties +3 -0
  25. data/templates/project/files/build/config/default.properties +79 -0
  26. data/templates/project/files/build/config/project.properties +49 -0
  27. data/templates/project/files/build/createproject.sh +73 -0
  28. data/templates/project/files/build/tools/ant-contrib-1.0b3.jar +0 -0
  29. data/templates/project/files/build/tools/css-compressor/CSSCompression.php +465 -0
  30. data/templates/project/files/build/tools/css-compressor/changelog.txt +22 -0
  31. data/templates/project/files/build/tools/css-compressor/cli.php +101 -0
  32. data/templates/project/files/build/tools/css-compressor/helpers/hex2short-colors.json +39 -0
  33. data/templates/project/files/build/tools/css-compressor/helpers/hex2short-safe.json +16 -0
  34. data/templates/project/files/build/tools/css-compressor/helpers/long2hex-colors.json +127 -0
  35. data/templates/project/files/build/tools/css-compressor/lib/Cleanup.php +218 -0
  36. data/templates/project/files/build/tools/css-compressor/lib/Color.php +199 -0
  37. data/templates/project/files/build/tools/css-compressor/lib/Combine.php +191 -0
  38. data/templates/project/files/build/tools/css-compressor/lib/Combine/Aural.php +109 -0
  39. data/templates/project/files/build/tools/css-compressor/lib/Combine/Background.php +107 -0
  40. data/templates/project/files/build/tools/css-compressor/lib/Combine/Border.php +98 -0
  41. data/templates/project/files/build/tools/css-compressor/lib/Combine/BorderOutline.php +109 -0
  42. data/templates/project/files/build/tools/css-compressor/lib/Combine/BorderRadius.php +262 -0
  43. data/templates/project/files/build/tools/css-compressor/lib/Combine/Font.php +125 -0
  44. data/templates/project/files/build/tools/css-compressor/lib/Combine/List.php +104 -0
  45. data/templates/project/files/build/tools/css-compressor/lib/Combine/MarginPadding.php +190 -0
  46. data/templates/project/files/build/tools/css-compressor/lib/Compress.php +212 -0
  47. data/templates/project/files/build/tools/css-compressor/lib/Control.php +236 -0
  48. data/templates/project/files/build/tools/css-compressor/lib/Exception.php +32 -0
  49. data/templates/project/files/build/tools/css-compressor/lib/Format.php +187 -0
  50. data/templates/project/files/build/tools/css-compressor/lib/Individuals.php +307 -0
  51. data/templates/project/files/build/tools/css-compressor/lib/Numeric.php +103 -0
  52. data/templates/project/files/build/tools/css-compressor/lib/Option.php +133 -0
  53. data/templates/project/files/build/tools/css-compressor/lib/Organize.php +149 -0
  54. data/templates/project/files/build/tools/css-compressor/lib/Selectors.php +245 -0
  55. data/templates/project/files/build/tools/css-compressor/lib/Setup.php +292 -0
  56. data/templates/project/files/build/tools/css-compressor/lib/Trim.php +213 -0
  57. data/templates/project/files/build/tools/css-compressor/license.txt +21 -0
  58. data/templates/project/files/build/tools/htmlcompressor-0.9.8.jar +0 -0
  59. data/templates/project/files/build/tools/jpegtran.exe +0 -0
  60. data/templates/project/files/build/tools/optipng-0.6.4-exe/LICENSE.txt +21 -0
  61. data/templates/project/files/build/tools/optipng-0.6.4-exe/optipng.exe +0 -0
  62. data/templates/project/files/build/tools/yuicompressor-2.4.2.jar +0 -0
  63. data/templates/project/files/crossdomain.xml +25 -0
  64. data/templates/project/files/favicon.ico +0 -0
  65. data/templates/project/files/gitignore.txt +32 -0
  66. data/templates/project/files/gitignore_placeholder.txt +2 -0
  67. data/templates/project/files/google.yml +22 -0
  68. data/templates/project/files/htaccess +415 -0
  69. data/templates/project/files/humans.txt +43 -0
  70. data/templates/project/files/lighttpd.conf +149 -0
  71. data/templates/project/files/mime.types +80 -0
  72. data/templates/project/files/nginx.conf +108 -0
  73. data/templates/project/files/robots.txt +5 -0
  74. data/templates/project/files/web.config +207 -0
  75. data/templates/project/handheld.scss +8 -0
  76. data/templates/project/index.html +81 -0
  77. data/templates/project/javascripts/libs/dd_belatedpng.js +13 -0
  78. data/templates/project/javascripts/libs/jquery-1.4.4.js +7179 -0
  79. data/templates/project/javascripts/libs/jquery-1.4.4.min.js +167 -0
  80. data/templates/project/javascripts/libs/modernizr-1.6.min.js +30 -0
  81. data/templates/project/javascripts/plugins.js +13 -0
  82. data/templates/project/javascripts/rails.js +156 -0
  83. data/templates/project/javascripts/script.js +26 -0
  84. data/templates/project/manifest.rb +101 -0
  85. data/templates/project/partials/_base.scss +23 -0
  86. data/templates/project/style.scss +70 -0
  87. metadata +171 -0
@@ -0,0 +1,43 @@
1
+ /* the humans responsible & colophon */
2
+ /* humanstxt.org */
3
+
4
+
5
+ /* TEAM */
6
+ <your title>: <your name>
7
+ Site:
8
+ Twitter:
9
+ Location:
10
+
11
+ /* THANKS */
12
+ Names (& URL):
13
+
14
+ /* SITE */
15
+ Standards: HTML5, CSS3
16
+ Components: Modernizr, jQuery
17
+ Software:
18
+
19
+
20
+
21
+ -o/-
22
+ +oo//-
23
+ :ooo+//:
24
+ -ooooo///-
25
+ /oooooo//:
26
+ :ooooooo+//-
27
+ -+oooooooo///-
28
+ -://////////////+oooooooooo++////////////::
29
+ :+ooooooooooooooooooooooooooooooooooooo+:::-
30
+ -/+ooooooooooooooooooooooooooooooo+/::////:-
31
+ -:+oooooooooooooooooooooooooooo/::///////:-
32
+ --/+ooooooooooooooooooooo+::://////:-
33
+ -:+ooooooooooooooooo+:://////:--
34
+ /ooooooooooooooooo+//////:-
35
+ -ooooooooooooooooooo////-
36
+ /ooooooooo+oooooooooo//:
37
+ :ooooooo+/::/+oooooooo+//-
38
+ -oooooo/::///////+oooooo///-
39
+ /ooo+::://////:---:/+oooo//:
40
+ -o+/::///////:- -:/+o+//-
41
+ :-:///////:- -:/://
42
+ -////:- --//:
43
+ -- -:
@@ -0,0 +1,149 @@
1
+ ############ Options you really have to take care of ####################
2
+
3
+ ## Run as an unpriveleged user
4
+ server.username = "www"
5
+ server.groupname = "www"
6
+
7
+ ## to help the rc.scripts
8
+ server.pid-file = "/var/run/lighttpd/lighttpd.pid"
9
+
10
+ ## A static document-root. For virtual hosting take a look at the
11
+ ## mod_simple_vhost module.
12
+ server.document-root = "/var/www/sites/go/here/"
13
+
14
+ ## modules to load
15
+ # at least mod_access and mod_accesslog should be loaded
16
+ server.modules = (
17
+ "mod_access",
18
+ "mod_accesslog",
19
+ "mod_redirect",
20
+ "mod_compress",
21
+ "mod_expire"
22
+ )
23
+
24
+ ### File uploads
25
+ # Make sure this folder exists and is writable to server.username
26
+ server.upload-dirs = ( "/tmp/lighttpd/uploads" )
27
+
28
+ ## where to send error-messages to
29
+ server.errorlog = "/var/log/lighttpd/error.log"
30
+
31
+ #### accesslog module
32
+ accesslog.filename = "/var/log/lighttpd/access.log"
33
+
34
+ ### compress module
35
+ # Make sure this folder exists and is writable to server.username
36
+ compress.cache-dir = "/tmp/lighttpd/compress/"
37
+ compress.filetype = (
38
+ "text/plain",
39
+ "text/html",
40
+ "text/css",
41
+ "application/json",
42
+ "text/javascript",
43
+ "application/javascript",
44
+ "application/x-javascript",
45
+ "text/xml",
46
+ "application/xml",
47
+ "application/xml-rss",
48
+ "text/x-component",
49
+ )
50
+
51
+ # files to check for if .../ is requested
52
+ index-file.names = (
53
+ "index.html",
54
+ "index.htm",
55
+ )
56
+
57
+ ## set the event-handler (read the performance section in the manual)
58
+ # server.event-handler = "freebsd-kqueue" # needed on OS X
59
+
60
+ # mimetype mapping
61
+ mimetype.assign = (
62
+ ".pdf" => "application/pdf",
63
+ ".sig" => "application/pgp-signature",
64
+ ".spl" => "application/futuresplash",
65
+ ".class" => "application/octet-stream",
66
+ ".safariextz" => "application/octet-stream",
67
+ ".ps" => "application/postscript",
68
+ ".torrent" => "application/x-bittorrent",
69
+ ".crx" => "application/x-chrome-extension",
70
+ ".dvi" => "application/x-dvi",
71
+ ".gz" => "application/x-gzip",
72
+ ".pac" => "application/x-ns-proxy-autoconfig",
73
+ ".swf" => "application/x-shockwave-flash",
74
+ ".tar.gz" => "application/x-tgz",
75
+ ".tgz" => "application/x-tgz",
76
+ ".tar" => "application/x-tar",
77
+ ".xpi" => "application/x-xpinstall",
78
+ ".zip" => "application/zip",
79
+ ".mp3" => "audio/mpeg",
80
+ ".m3u" => "audio/x-mpegurl",
81
+ ".wma" => "audio/x-ms-wma",
82
+ ".wax" => "audio/x-ms-wax",
83
+ ".ogg" => "application/ogg",
84
+ ".wav" => "audio/x-wav",
85
+ ".gif" => "image/gif",
86
+ ".jar" => "application/x-java-archive",
87
+ ".jpg" => "image/jpeg",
88
+ ".jpeg" => "image/jpeg",
89
+ ".png" => "image/png",
90
+ ".xbm" => "image/x-xbitmap",
91
+ ".xpm" => "image/x-xpixmap",
92
+ ".xwd" => "image/x-xwindowdump",
93
+ ".css" => "text/css",
94
+ ".html" => "text/html",
95
+ ".htm" => "text/html",
96
+ ".js" => "text/javascript",
97
+ ".json" => "text/javascript",
98
+ ".asc" => "text/plain",
99
+ ".c" => "text/plain",
100
+ ".cpp" => "text/plain",
101
+ ".log" => "text/plain",
102
+ ".conf" => "text/plain",
103
+ ".text" => "text/plain",
104
+ ".txt" => "text/plain",
105
+ ".dtd" => "text/xml",
106
+ ".xml" => "text/xml",
107
+ ".mpeg" => "video/mpeg",
108
+ ".mpg" => "video/mpeg",
109
+ ".mov" => "video/quicktime",
110
+ ".qt" => "video/quicktime",
111
+ ".avi" => "video/x-msvideo",
112
+ ".asf" => "video/x-ms-asf",
113
+ ".asx" => "video/x-ms-asf",
114
+ ".wmv" => "video/x-ms-wmv",
115
+ ".bz2" => "application/x-bzip",
116
+ ".tbz" => "application/x-bzip-compressed-tar",
117
+ ".tar.bz2" => "application/x-bzip-compressed-tar",
118
+
119
+
120
+
121
+ # default mime type
122
+ "" => "application/octet-stream",
123
+ )
124
+
125
+ ## deny access the file-extensions
126
+ #
127
+ # ~ is for backupfiles from vi, emacs, joe, ...
128
+ # .inc is often used for code includes which should in general not be part
129
+ # of the document-root
130
+ url.access-deny = ( "~", ".inc" )
131
+
132
+ $HTTP["url"] =~ "\.pdf$" {
133
+ server.range-requests = "disable"
134
+ }
135
+
136
+ ##
137
+ # which extensions should not be handle via static-file transfer
138
+ #
139
+ # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
140
+ static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
141
+
142
+ ## bind to all ips, or change to a specific ip
143
+ server.bind = "0.0.0.0"
144
+
145
+ # If its an asset, expires in a month from now
146
+ expire.url = (
147
+ "\.(ico|ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)" => "access plus 10 years",
148
+ ".*" => "access plus 1 month"
149
+ )
@@ -0,0 +1,80 @@
1
+ types {
2
+ text/html html htm shtml;
3
+ text/css css;
4
+ text/xml xml rss;
5
+ image/gif gif;
6
+ image/jpeg jpeg jpg;
7
+ application/x-javascript js;
8
+ application/atom+xml atom;
9
+
10
+ text/cache-manifest manifest;
11
+ text/mathml mml;
12
+ text/plain txt;
13
+ text/vnd.sun.j2me.app-descriptor jad;
14
+ text/vnd.wap.wml wml;
15
+ text/x-component htc;
16
+
17
+ image/png png;
18
+ image/svg+xml svg svgz;
19
+ image/tiff tif tiff;
20
+ image/vnd.wap.wbmp wbmp;
21
+ image/webp webp;
22
+ image/vnd.microsoft.icon ico;
23
+ image/x-jng jng;
24
+ image/x-ms-bmp bmp;
25
+
26
+ application/java-archive jar war ear;
27
+ application/mac-binhex40 hqx;
28
+ application/msword doc;
29
+ application/pdf pdf;
30
+ application/postscript ps eps ai;
31
+ application/rtf rtf;
32
+ application/vnd.ms-excel xls;
33
+ application/vnd.ms-powerpoint ppt;
34
+ application/vnd.wap.wmlc wmlc;
35
+ application/vnd.wap.xhtml+xml xhtml;
36
+ application/x-chrome-extension crx;
37
+ application/x-cocoa cco;
38
+ application/x-java-archive-diff jardiff;
39
+ application/x-java-jnlp-file jnlp;
40
+ application/x-makeself run;
41
+ application/x-perl pl pm;
42
+ application/x-pilot prc pdb;
43
+ application/x-rar-compressed rar;
44
+ application/x-redhat-package-manager rpm;
45
+ application/x-sea sea;
46
+ application/x-shockwave-flash swf;
47
+ application/x-stuffit sit;
48
+ application/x-tcl tcl tk;
49
+ application/x-x509-ca-cert der pem crt;
50
+ application/x-xpinstall xpi;
51
+ application/zip zip;
52
+
53
+ application/octet-stream bin exe dll;
54
+ application/octet-stream deb;
55
+ application/octet-stream dmg;
56
+ application/octet-stream iso img;
57
+ application/octet-stream msi msp msm;
58
+ application/octet-stream safariextz
59
+
60
+ audio/midi mid midi kar;
61
+ audio/mpeg mp3;
62
+ audio/x-realaudio ra;
63
+ audio/ogg oga ogg;
64
+
65
+ video/3gpp 3gpp 3gp;
66
+ video/mpeg mpeg mpg;
67
+ video/ogg ogv;
68
+ video/quicktime mov;
69
+ video/webm webm;
70
+ video/x-flv flv;
71
+ video/x-mng mng;
72
+ video/x-ms-asf asx asf;
73
+ video/x-ms-wmv wmv;
74
+ video/x-msvideo avi;
75
+
76
+ application/vnd.ms-fontobject eot;
77
+ font/truetype ttf;
78
+ font/opentype otf;
79
+ font/woff woff;
80
+ }
@@ -0,0 +1,108 @@
1
+ # Set another default user than root for security reasons
2
+ user www www;
3
+
4
+ # As a thumb rule: One per CPU. If you are serving a large amount
5
+ # of static files, which requires blocking disk reads, you may want
6
+ # to increase this from the number of cpu_cores available on your
7
+ # system.
8
+ #
9
+ # The maximum number of connections for Nginx is calculated by:
10
+ # max_clients = worker_processes * worker_connections
11
+ worker_processes 1;
12
+
13
+ # Maximum file descriptors that can be opened per process
14
+ # This should be > worker_connections
15
+ worker_rlimit_nofile 8192;
16
+
17
+ events {
18
+ # When you need > 8000 * cpu_cores connections, you start optimizing
19
+ # your OS, and this is probably the point at where you hire people
20
+ # who are smarter than you, this is *a lot* of requests.
21
+ worker_connections 8000;
22
+
23
+ # This sets up some smart queueing for accept(2)'ing requests
24
+ # Set it to "on" if you have > worker_processes
25
+ accept_mutex off;
26
+
27
+ # These settings are OS specific, by defualt Nginx uses select(2),
28
+ # however, for a large number of requests epoll(2) and kqueue(2)
29
+ # are generally faster than the default (select(2))
30
+ # use epoll; # enable for Linux 2.6+
31
+ # use kqueue; # enable for *BSD (FreeBSD, OS X, ..)
32
+ }
33
+
34
+ # Change these paths to somewhere that suits you!
35
+ error_log logs/error.log;
36
+ pid logs/nginx.pid;
37
+
38
+ http {
39
+ # Set the mime-types
40
+ include mime.types;
41
+
42
+ # And the fallback mime-type
43
+ default_type application/octet-stream;
44
+
45
+ # Format for our log files
46
+ log_format main '$remote_addr - $remote_user [$time_local] $status '
47
+ '"$request" $body_bytes_sent "$http_referer" '
48
+ '"$http_user_agent" "$http_x_forwarded_for"';
49
+
50
+ # Click tracking!
51
+ access_log logs/access.log main;
52
+
53
+ # ~2 seconds is often enough for HTML/CSS, but connections in
54
+ # Nginx are cheap, so generally it's safe to increase it
55
+ keepalive_timeout 5;
56
+
57
+ # You usually want to serve static files with Nginx
58
+ sendfile on;
59
+
60
+ tcp_nopush on; # off may be better for Comet/long-poll stuff
61
+ tcp_nodelay off; # on may be better for Comet/long-poll stuff
62
+
63
+ # Enable Gzip
64
+ gzip on;
65
+ gzip_http_version 1.0;
66
+ gzip_comp_level 2;
67
+ gzip_min_length 1100;
68
+ gzip_buffers 4 8k;
69
+ gzip_proxied any;
70
+ gzip_types text/plain text/xml application/xml application/xml+rss text/css text/javascript application/javascript application/json;
71
+
72
+ gzip_static on;
73
+
74
+ gzip_proxied expired no-cache no-store private auth;
75
+ gzip_disable "MSIE [1-6]\.";
76
+ gzip_vary on;
77
+
78
+ server {
79
+ # listen 80 default deferred; # for Linux
80
+ # listen 80 default accept_filter=httpready; # for FreeBSD
81
+ listen 80 default;
82
+
83
+ # e.g. "localhost" to accept all connections, or "www.example.com"
84
+ # to handle the requests for "example.com" (and www.example.com)
85
+ server_name _;
86
+
87
+ # Path for static files
88
+ root /sites/example.com/public;
89
+
90
+ expires 1M;
91
+
92
+ # Static assets
93
+ location ~* ^.+\.(manifest)$ {
94
+ expires -1;
95
+ root /sites/example.com/public;
96
+ access_log logs/static.log;
97
+ }
98
+
99
+ location ~* ^.+\.(ico|ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
100
+ # Only set expires max IFF the file is a static file and exists
101
+ if (-f $request_filename) {
102
+ expires max;
103
+ root /sites/example.com/public;
104
+ access_log logs/static.log;
105
+ }
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,5 @@
1
+ # www.robotstxt.org/
2
+ # www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
3
+
4
+ User-agent: *
5
+
@@ -0,0 +1,207 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- web.config contributed to html5boilerplate by Velir : velir.com -->
3
+ <configuration>
4
+ <configSections>
5
+ <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
6
+ <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
7
+ <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
8
+ <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
9
+ <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
10
+ <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
11
+ <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
12
+ <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
13
+ </sectionGroup>
14
+ </sectionGroup>
15
+ </sectionGroup>
16
+ </configSections>
17
+
18
+ <appSettings />
19
+ <connectionStrings />
20
+ <system.web>
21
+ <!--
22
+ Set compilation debug="true" to insert debugging
23
+ symbols into the compiled page. Because this
24
+ affects performance, set this value to true only
25
+ during development.
26
+ -->
27
+ <compilation debug="false">
28
+
29
+ <assemblies>
30
+ <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
31
+ <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
32
+ <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
33
+ <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
34
+ </assemblies>
35
+
36
+ </compilation>
37
+ <authentication mode="Windows" />
38
+ <!--
39
+ The <customErrors> section enables configuration
40
+ of what to do if/when an unhandled error occurs
41
+ during the execution of a request. Specifically,
42
+ it enables developers to configure html error pages
43
+ to be displayed in place of a error stack trace.
44
+
45
+ <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
46
+ <error statusCode="403" redirect="NoAccess.htm" />
47
+ <error statusCode="404" redirect="FileNotFound.htm" />
48
+ </customErrors>
49
+ -->
50
+ <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
51
+ <error statusCode="404" redirect="404.html" />
52
+ </customErrors>
53
+
54
+ <pages>
55
+ <controls>
56
+ <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
57
+ <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
58
+ </controls>
59
+ </pages>
60
+
61
+ <httpHandlers>
62
+ <remove verb="*" path="*.asmx" />
63
+ <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
64
+ <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
65
+ <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
66
+ </httpHandlers>
67
+ <httpModules>
68
+ <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
69
+ </httpModules>
70
+ </system.web>
71
+
72
+ <system.codedom>
73
+ <compilers>
74
+ <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
75
+ <providerOption name="CompilerVersion" value="v3.5" />
76
+ <providerOption name="WarnAsError" value="false" />
77
+ </compiler>
78
+ <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
79
+ <providerOption name="CompilerVersion" value="v3.5" />
80
+ <providerOption name="OptionInfer" value="true" />
81
+ <providerOption name="WarnAsError" value="false" />
82
+ </compiler>
83
+ </compilers>
84
+ </system.codedom>
85
+
86
+ <system.webServer>
87
+ <!--
88
+ GZip static file content. Overrides the server default which only compresses static files over 2700 bytes
89
+ -->
90
+ <httpCompression directory="%SystemDrive%\websites\_compressed" minFileSizeForComp="1024">
91
+ <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
92
+ <staticTypes>
93
+ <add mimeType="text/*" enabled="true" />
94
+ <add mimeType="message/*" enabled="true" />
95
+ <add mimeType="application/javascript" enabled="true" />
96
+ <add mimeType="application/json" enabled="true" />
97
+ <add mimeType="*/*" enabled="false" />
98
+ </staticTypes>
99
+ </httpCompression>
100
+
101
+ <validation validateIntegratedModeConfiguration="false" />
102
+ <modules>
103
+ <remove name="ScriptModule" />
104
+ <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
105
+ </modules>
106
+ <handlers>
107
+ <remove name="WebServiceHandlerFactory-Integrated" />
108
+ <remove name="ScriptHandlerFactory" />
109
+ <remove name="ScriptHandlerFactoryAppServices" />
110
+ <remove name="ScriptResource" />
111
+ <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
112
+ <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
113
+ <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
114
+ </handlers>
115
+ <urlCompression doStaticCompression="true" />
116
+ <staticContent>
117
+ <!-- Set expire headers to 30 days for static content-->
118
+ <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00" />
119
+ <!-- use utf-8 encoding for anything served text/plain or text/html -->
120
+ <remove fileExtension=".css" />
121
+ <mimeMap fileExtension=".css" mimeType="text/css; charset=UTF-8" />
122
+ <remove fileExtension=".js" />
123
+ <mimeMap fileExtension=".js" mimeType="text/javascript; charset=UTF-8" />
124
+ <remove fileExtension=".json" />
125
+ <mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
126
+ <remove fileExtension=".rss" />
127
+ <mimeMap fileExtension=".rss" mimeType="application/rss+xml; charset=UTF-8" />
128
+ <remove fileExtension=".html" />
129
+ <mimeMap fileExtension=".html" mimeType="text/html; charset=UTF-8" />
130
+ <remove fileExtension=".xml" />
131
+ <mimeMap fileExtension=".xml" mimeType="application/xml; charset=UTF-8" />
132
+ <!-- HTML5 Video mime types-->
133
+ <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
134
+ <mimeMap fileExtension=".m4v" mimeType="video/m4v" />
135
+ <mimeMap fileExtension=".ogg" mimeType="video/ogg" />
136
+ <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
137
+ <mimeMap fileExtension=".webm" mimeType="video/webm" />
138
+ <!-- Proper svg serving. Required for svg webfonts on iPad -->
139
+ <mimeMap fileExtension=".svg" mimeType="images/svg+xml" />
140
+ <mimeMap fileExtension=".svgz" mimeType="images/svg+xml" />
141
+ <!-- HTML4 Web font mime types -->
142
+ <!-- Remove default IIS mime type for .eot which is application/octet-stream -->
143
+ <remove fileExtension=".eot" />
144
+ <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
145
+ <mimeMap fileExtension=".otf" mimeType="font/otf" />
146
+ <mimeMap fileExtension=".woff" mimeType="font/x-woff" />
147
+ <mimeMap fileExtension=".crx" mimeType="application/x-chrome-extension" />
148
+ <mimeMap fileExtension=".xpi" mimeType="application/x-xpinstall" />
149
+ <mimeMap fileExtension=".safariextz" mimeType="application/octet-stream" />
150
+
151
+ </staticContent>
152
+ <httpProtocol>
153
+ <customHeaders>
154
+ <!--
155
+ http://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/
156
+ Uncomment to serve cross-domain ajax requests
157
+
158
+ <add name="Access-Control-Allow-Origin" value="*" />
159
+ -->
160
+
161
+ <!--
162
+ Force the latest IE version, in various cases when it may fall back to IE7 mode
163
+ github.com/rails/rails/commit/123eb25#commitcomment-118920
164
+ Use ChromeFrame if it's installed for a better experience for the poor IE folk
165
+ -->
166
+ <add name="X-UA-Compatible" value="IE=Edge,chrome=1" />
167
+
168
+ <!--
169
+ Allow cookies to be set from iframes (for IE only)
170
+ If needed, uncomment and specify a path or regex in the Location directive
171
+
172
+ <add name="P3P" value="policyref=&quot;/w3c/p3p.xml&quot;, CP=&quot;IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT&quot;" />
173
+ -->
174
+ </customHeaders>
175
+ </httpProtocol>
176
+ <!--
177
+ Remove the WWW from the URL.
178
+ Requires IIS Rewrite module http://learn.iis.net/page.aspx/460/using-the-url-rewrite-module/
179
+ Configuration lifted from http://nayyeri.net/remove-www-prefix-from-urls-with-url-rewrite-module-for-iis-7-0
180
+
181
+ <rewrite>
182
+ <rules>
183
+ <rule name="Remove WWW" stopProcessing="true">
184
+ <match url="^(.*)$" />
185
+ <conditions>
186
+ <add input="{HTTP_HOST}" pattern="^(www\.)(.*)$" />
187
+ </conditions>
188
+ <action type="Redirect" url="http://nayyeri.net{PATH_INFO}" redirectType="Permanent" />
189
+ </rule>
190
+ </rules>
191
+ </rewrite>
192
+ -->
193
+ </system.webServer>
194
+
195
+ <runtime>
196
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
197
+ <dependentAssembly>
198
+ <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" />
199
+ <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
200
+ </dependentAssembly>
201
+ <dependentAssembly>
202
+ <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35" />
203
+ <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0" />
204
+ </dependentAssembly>
205
+ </assemblyBinding>
206
+ </runtime>
207
+ </configuration>