Commits

Pierre Surply committed 693832a

Typo

  • Participants
  • Parent commits d5685f9

Comments (0)

Files changed (2)

 
 ## Template engine
 
-The template engine, programmed with OCaml, is designed to process web templates (situated in `/website/templates/`) and dynamic content (situated in `/website/cgi-bin`) to produce output web documents.
+The template engine, programmed with OCaml, is designed to process web templates (situated in `/templates/`) and dynamic content (situated in `/cgi-bin`) to produce output web documents.
 
 The template language uses the following syntax :
 
   - `[begin *part*]*html code*[end]` : defines a part of html code
   - `{ *part* }` : includes the content of the part *part* previously defined
-  - `{% *function* %}` : includes the result of the OCaml function *function*. The function must be declared in the file `/website/cgi-bin/cgi_functions.ml`.
+  - `{% *function* %}` : includes the result of the OCaml function *function*. The function must be declared in the file `/cgi-bin/cgi_functions.ml`.
   - `{@ *template* @}` : Tells the template engine that the current template "extends" another template.
 
 Once template processing is complete, the content of the part `base` is printed by the CGI.
 
     http://domain?arg0/arg1/arg2/...
 
-The arg0 represents the name of the page asked by the user.
-You can link the arg0 to a template in the file `/website/cgi-bin/url.ml`.
+arg0 represents the name of the page asked by the user.
+You can link arg0 to a template in the file `/cgi-bin/url.ml`.
 The others arguments can be gotten with the function `Env.get_url_arg n`.
 
 ## Example
     <!DOCTYPE html>
     <html>
       <head>
-        <title>OCaml-OCR -{ title }</title>
+        <title>OCaml-WebFramework -{ title }</title>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
       </head>
       <body>

File templates/base.html

 <!DOCTYPE html>
 <html>
   <head>
-    <title>OCaml-OCR -{ title }</title>
+    <title>OCaml-WebFramework -{ title }</title>
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   </head>
   <body>