Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julien Cervelle
PadiFlac
Commits
ac5a7e05
Commit
ac5a7e05
authored
May 23, 2022
by
Benoît Barbot
Browse files
gen html
parent
6c8abb99
Pipeline
#2812
passed with stages
in 1 minute and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
front/samples/modularize.ml
View file @
ac5a7e05
...
...
@@ -15,9 +15,19 @@ let _ =
copy
g
f
;
close_in
g
;
Printf
.
fprintf
f
"end
module R = Gen_page.Make (%s)
let _= R.run ()
\n
"
mod_name
;
close_out
f
close_out
f
;
let
pagename
=
(
Filename
.
chop_extension
infile
)
^
".html"
in
if
not
@@
Sys
.
file_exists
pagename
then
let
fhtml
=
open_out
pagename
in
Printf
.
fprintf
fhtml
"<!DOCTYPE html><html><head>
<title>Padiflac</title>
<meta charset='utf-8'/>
<script type='text/javascript' src='%s.bc.js'></script>
</head><body></body></html>"
mod_name
;
close_out
fhtml
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment