-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocamlformat update to 0.26.1 for template
- Loading branch information
Showing
34 changed files
with
220 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,29 +7,24 @@ let%shared displayed_app_name = "%%%PROJECT_NAME%%%" | |
|
||
(* Database initialization *) | ||
let () = | ||
Os_db.init | ||
?host:!%%%MODULE_NAME%%%_config.os_db_host | ||
?port:!%%%MODULE_NAME%%%_config.os_db_port | ||
Os_db.init ?host:!%%%MODULE_NAME%%%_config.os_db_host ?port:!%%%MODULE_NAME%%%_config.os_db_port | ||
?user:!%%%MODULE_NAME%%%_config.os_db_user | ||
?password:!%%%MODULE_NAME%%%_config.os_db_password | ||
?database:!%%%MODULE_NAME%%%_config.os_db_database | ||
?unix_domain_socket_dir: | ||
!%%%MODULE_NAME%%%_config.os_db_unix_domain_socket_dir | ||
?unix_domain_socket_dir:!%%%MODULE_NAME%%%_config.os_db_unix_domain_socket_dir | ||
() | ||
|
||
let () = Os_email.set_mailer "/usr/sbin/sendmail" | ||
|
||
let () = | ||
Os_email.set_from_addr ("%%%PROJECT_NAME%%% team", "[email protected]") | ||
let () = Os_email.set_from_addr ("%%%PROJECT_NAME%%% team", "[email protected]") | ||
|
||
(* Create a module for the application. See | ||
https://ocsigen.org/eliom/manual/clientserver-applications for more | ||
information. *) | ||
[%%shared | ||
module App = Eliom_registration.App (struct | ||
let application_name = application_name | ||
let global_data_path = Some ["__global_data__"] | ||
end)] | ||
let application_name = application_name | ||
let global_data_path = Some ["__global_data__"] | ||
end)] | ||
|
||
(* As the headers (stylesheets, etc) won't change, we ask Eliom not to | ||
update the <head> of the page when changing page. (This also avoids | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.