Browse thread
[Caml-list] dynamic HTML pages
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | David Monniaux <monniaux@d...> |
| Subject: | mixing different languages (was: RE: [Caml-list] dynamic HTML pages) |
On Tue, 8 Apr 2003, Mattias Waldau wrote: > I use HereDoc by Alain Frisch. I think I use an old version. > It works like JSP. Very simple to use. Based on camlp4. This is slightly off-topic, but: In the case of dynamic WWW pages, it is often the case that the same script or program actually contains code written in several languages: HTML, SQL, OCaml/PHP/Perl, XML... For integration, a mechanism of quotation/antiquotations (à la Camlp4) is nice. Are there any text editors that are aware of such mixed programs? Another alternative for HTML would be to have a regular HTML page, perhaps edited with HTML generation tools (FrontPage, Quanta+...), with special tags indicating special actions. For instance: a table output from a bibliographic database would look like <table><tbody> <foreach item=entry><td><param name=author></td> <td><param name=title></td></foreach> </tbody></table> It would only be a matter of parsing this regular HTML page with a SGML parser such as OCamlNet, replacing <foreach>...</foreach> by iteration and <param> tags by iteration variables. Has there been something done around that kind of things? David Monniaux http://www.di.ens.fr/~monniaux Laboratoire d'informatique de l'École Normale Supérieure, Paris, France ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners