@@ -29,53 +29,53 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
2929 -> fmt:: Result
3030{
3131 write ! ( dst,
32- "<!DOCTYPE html>
33- <html lang=\ " en\ " >
32+ r## "<!DOCTYPE html>
33+ <html lang="en">
3434<head>
35- <meta charset=\ " utf-8\ " />
35+ <meta charset="utf-8" />
3636 <title>{title}</title>
3737
3838 <link href='http://fonts.googleapis.com/css?family=Oswald:700|Inconsolata:400,700'
3939 rel='stylesheet' type='text/css'>
40- <link rel=\ " stylesheet\ " type=\ " text/css\ " href=\ " {root_path}main.css\ " >
40+ <link rel="stylesheet" type="text/css" href="{root_path}main.css">
4141
42- {favicon, select, none{} other{<link rel=\ " shortcut icon\ " href=\" # \ " />}}
42+ {favicon, select, none{} other{<link rel="shortcut icon" href="\# " />}}
4343</head>
4444<body>
4545 <!--[if lte IE 8]>
46- <div class=\ " warning\ " >
46+ <div class="warning">
4747 This old browser is unsupported and will most likely display funky
4848 things.
4949 </div>
5050 <![endif]-->
5151
52- <section class=\ " sidebar\ " >
52+ <section class="sidebar">
5353 {logo, select, none{} other{
54- <a href='{root_path}{krate}/index.html'><img src='#' alt=''/></a>
54+ <a href='{root_path}{krate}/index.html'><img src='\ #' alt=''/></a>
5555 }}
5656
5757 {sidebar}
5858 </section>
5959
60- <nav class=\ " sub\ " >
61- <form class=\ " search-form js-only\ " >
62- <button class=\ " do-search\ " >Search</button>
63- <div class=\ " search-container\ " >
64- <input class=\ " search-input\ " name=\ " search\ "
65- autocomplete=\ " off\ "
66- placeholder=\ " Search documentation...\ "
67- type=\ " search\ " />
60+ <nav class="sub">
61+ <form class="search-form js-only">
62+ <button class="do-search">Search</button>
63+ <div class="search-container">
64+ <input class="search-input" name="search"
65+ autocomplete="off"
66+ placeholder="Search documentation..."
67+ type="search" />
6868 </div>
6969 </form>
7070 </nav>
7171
72- <section id='main' class=\ " content {ty}\ " >{content}</section>
73- <section id='search' class=\ " content hidden\ " ></section>
72+ <section id='main' class="content {ty}">{content}</section>
73+ <section id='search' class="content hidden"></section>
7474
75- <section class=\ " footer\ " ></section>
75+ <section class="footer"></section>
7676
77- <div id=\ " help\ " class=\ " hidden\ " >
78- <div class=\ " shortcuts\ " >
77+ <div id="help" class="hidden">
78+ <div class="shortcuts">
7979 <h1>Keyboard shortcuts</h1>
8080 <dl>
8181 <dt>?</dt>
@@ -86,11 +86,11 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
8686 <dd>Move up in search results</dd>
8787 <dt>↓</dt>
8888 <dd>Move down in search results</dd>
89- <dt>&\\ #9166;</dt>
89+ <dt>&\#9166;</dt>
9090 <dd>Go to active search result</dd>
9191 </dl>
9292 </div>
93- <div class=\ " infos\ " >
93+ <div class="infos">
9494 <h1>Search tricks</h1>
9595 <p>
9696 Prefix searches with a type followed by a colon (e.g.
@@ -106,15 +106,15 @@ pub fn render<T: fmt::Show, S: fmt::Show>(
106106 </div>
107107
108108 <script>
109- var rootPath = \ " {root_path}\ " ;
110- var currentCrate = \ " {krate}\ " ;
109+ var rootPath = "{root_path}";
110+ var currentCrate = "{krate}";
111111 </script>
112- <script src=\ " {root_path}jquery.js\ " ></script>
113- <script src=\ " {root_path}main.js\ " ></script>
114- <script async src=\ " {root_path}search-index.js\ " ></script>
112+ <script src="{root_path}jquery.js"></script>
113+ <script src="{root_path}main.js"></script>
114+ <script async src="{root_path}search-index.js"></script>
115115</body>
116116</html>
117- " ,
117+ "## ,
118118 content = * t,
119119 root_path = page. root_path,
120120 ty = page. ty,
0 commit comments