Changeset 50 in code
- Timestamp:
- Oct 19, 2023, 1:21:22 AM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cli/html.ml
r48 r50 14 14 let footer = to_string "HTM-footer" kv in 15 15 let style = match to_string "HTM-style" kv with 16 | Some s -> Printf.sprintf "<style>%s</style> " s | None -> "" in16 | Some s -> Printf.sprintf "<style>%s</style>\n" s | None -> "" in 17 17 { templates = { header; footer}; style } 18 18 … … 32 32 in 33 33 let footer = match htm.templates.footer with None -> "" | Some x -> replace x in 34 Printf.sprintf "<!DOCTYPE HTML PUBLIC \"//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"> <html><head><title>%s%s</title>\n%s\n%s\35 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"> <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\"></head><body>\n%s%s%s</body></html>"34 Printf.sprintf "<!DOCTYPE HTML PUBLIC \"//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html>\n<head>\n<link rel=\"icon\" href=\"/favicon.png\">\n<title>%s%s</title>\n%s\n%s\ 35 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\">\n</head>\n<body>\n%s%s%s</body>\n</html>" 36 36 text_title (if site_title <> "" then (" • " ^ site_title) else "") 37 37 htm.style
Note:
See TracChangeset
for help on using the changeset viewer.