@@ -17,6 +17,7 @@ pub static INDEX: &[u8] = include_bytes!("index.hbs");
17
17
pub static HEAD : & [ u8 ] = include_bytes ! ( "head.hbs" ) ;
18
18
pub static REDIRECT : & [ u8 ] = include_bytes ! ( "redirect.hbs" ) ;
19
19
pub static HEADER : & [ u8 ] = include_bytes ! ( "header.hbs" ) ;
20
+ pub static BEFORE_BODY_END : & [ u8 ] = include_bytes ! ( "before_body_end.hbs" ) ;
20
21
pub static CHROME_CSS : & [ u8 ] = include_bytes ! ( "css/chrome.css" ) ;
21
22
pub static GENERAL_CSS : & [ u8 ] = include_bytes ! ( "css/general.css" ) ;
22
23
pub static PRINT_CSS : & [ u8 ] = include_bytes ! ( "css/print.css" ) ;
@@ -50,6 +51,7 @@ pub struct Theme {
50
51
pub head : Vec < u8 > ,
51
52
pub redirect : Vec < u8 > ,
52
53
pub header : Vec < u8 > ,
54
+ pub before_body_end : Vec < u8 > ,
53
55
pub chrome_css : Vec < u8 > ,
54
56
pub general_css : Vec < u8 > ,
55
57
pub print_css : Vec < u8 > ,
@@ -83,6 +85,7 @@ impl Theme {
83
85
( theme_dir. join( "head.hbs" ) , & mut theme. head) ,
84
86
( theme_dir. join( "redirect.hbs" ) , & mut theme. redirect) ,
85
87
( theme_dir. join( "header.hbs" ) , & mut theme. header) ,
88
+ ( theme_dir. join( "before_body_end.hbs" ) , & mut theme. before_body_end) ,
86
89
( theme_dir. join( "book.js" ) , & mut theme. js) ,
87
90
( theme_dir. join( "css/chrome.css" ) , & mut theme. chrome_css) ,
88
91
( theme_dir. join( "css/general.css" ) , & mut theme. general_css) ,
@@ -149,6 +152,7 @@ impl Default for Theme {
149
152
head : HEAD . to_owned ( ) ,
150
153
redirect : REDIRECT . to_owned ( ) ,
151
154
header : HEADER . to_owned ( ) ,
155
+ before_body_end : BEFORE_BODY_END . to_owned ( ) ,
152
156
chrome_css : CHROME_CSS . to_owned ( ) ,
153
157
general_css : GENERAL_CSS . to_owned ( ) ,
154
158
print_css : PRINT_CSS . to_owned ( ) ,
@@ -206,6 +210,7 @@ mod tests {
206
210
"head.hbs" ,
207
211
"redirect.hbs" ,
208
212
"header.hbs" ,
213
+ "before_body_end.hbs" ,
209
214
"favicon.png" ,
210
215
"favicon.svg" ,
211
216
"css/chrome.css" ,
@@ -236,6 +241,7 @@ mod tests {
236
241
head : Vec :: new ( ) ,
237
242
redirect : Vec :: new ( ) ,
238
243
header : Vec :: new ( ) ,
244
+ before_body_end : Vec :: new ( ) ,
239
245
chrome_css : Vec :: new ( ) ,
240
246
general_css : Vec :: new ( ) ,
241
247
print_css : Vec :: new ( ) ,
0 commit comments