caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] HTMLC
@ 2002-10-03 20:45 Pierre Weis
  2002-10-04  9:00 ` Stefano Zacchiroli
  0 siblings, 1 reply; 8+ messages in thread
From: Pierre Weis @ 2002-10-03 20:45 UTC (permalink / raw)
  To: caml-announce

[Version française ci-dessous]

New software: Htmlc, an HTML pages ``compiler''

I am pleased to announce the 1.0 version of Htmlc, a convenient little
tool to manage a set of WEB pages, to maintain the common look of
those pages and to factorize the repetive parts of their HTML code.
Htmlc encourages the usage of simple HTML templates that lowerize the
burden of writing your HTML pages.

Htmlc is still evolving from its initial satus of SSI static resolver
to the plain HTML page compiler we are all dreaming of. So, please,
don't hesitate to send your constructive remarks and contributions !

Htmlc home page is http://pauillac.inria.fr/htmlc/

Htmlc source files can be found at
ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/htmlc-1.0.tgz

Enjoy.

Pierre Weis.

[Version française]

Htmlc : un «compilateur» de pages HTML

J'ai le plaisir d'annoncer la sortie de la version 1.0 de Htmlc, un
petit outil bien pratique pour gérer des pages Web dont on veut
maintenir une certaine unité d'aspect et mettre en facteur les parties
communes. Htmlc permet en particulier de définir et d'utiliser des
modèles de pages.

Htmlc est bien sûr en plein développement (ce n'était au départ qu'un
outil de résolution statique des SSI) et n'attend que vos remarques
constructives et vos contributions pour croître et embellir!

La page Web de Htmlc est http://pauillac.inria.fr/htmlc/

Les fichiers sources de Htmlc sont en
ftp://ftp.inria.fr/lang/caml-light/bazar-ocaml/htmlc-1.0.tgz

Amusez-vous bien.

Pierre Weis.


-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] HTMLC
  2002-10-03 20:45 [Caml-list] HTMLC Pierre Weis
@ 2002-10-04  9:00 ` Stefano Zacchiroli
  2002-10-04  9:47   ` Pierre Weis
  2002-10-07  8:15   ` Tibor Simko
  0 siblings, 2 replies; 8+ messages in thread
From: Stefano Zacchiroli @ 2002-10-04  9:00 UTC (permalink / raw)
  To: Inria Ocaml Mailing List

On Thu, Oct 03, 2002 at 10:45:49PM +0200, Pierre Weis wrote:
> Htmlc is still evolving from its initial satus of SSI static resolver
> to the plain HTML page compiler we are all dreaming of. So, please,
> don't hesitate to send your constructive remarks and contributions !

I am a long time user of html compilers, my home page is fully static
html compiled using WML from a bounce of source files; I've also ever
used a structure like the one proposed in the HTMLC page (SRC and WEB
dirs, ...).

I was wondering about which are the aims of the HTMLC project, do you
plan to became a server side tool or not?
Currently a tool like HTML is only 'yet another html compiler' like many
others which currently support inclusion and a few other options, ok
it's fun because it's written in OCaml, but what does it add to the HTML
compiler niche?

A worth mentioning direction to take can be a WML like one but using
ocaml as an embedded language instead of perl, but this probably can
collide with other projects like ocamlweb or similar if you plan to move
to the SSI side.

Just some free thougths ...

Please consider this mail as a simple roadmap question, I really
appreciated your work, thanks. Moreover many html compiler projects died
years ago and aren't currently actively mainted (like WML), so a young
and well maintained projects can helps here.

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] HTMLC
  2002-10-04  9:00 ` Stefano Zacchiroli
@ 2002-10-04  9:47   ` Pierre Weis
  2002-10-04 14:14     ` Stefano Zacchiroli
  2002-10-07  8:15   ` Tibor Simko
  1 sibling, 1 reply; 8+ messages in thread
From: Pierre Weis @ 2002-10-04  9:47 UTC (permalink / raw)
  To: Stefano Zacchiroli; +Cc: caml-list

> On Thu, Oct 03, 2002 at 10:45:49PM +0200, Pierre Weis wrote:
> > Htmlc is still evolving from its initial status of SSI static resolver
> > to the plain HTML page compiler we are all dreaming of. So, please,
> > don't hesitate to send your constructive remarks and contributions !
> 
> I am a long time user of html compilers, my home page is fully static
> html compiled using WML from a bounce of source files; I've also ever
> used a structure like the one proposed in the HTMLC page (SRC and WEB
> dirs, ...).
> 
> I was wondering about which are the aims of the HTMLC project, do you
> plan to became a server side tool or not?

No, if I have to do it. Yes, if people want it and implement it.

> Currently a tool like HTML is only 'yet another html compiler' like many
> others which currently support inclusion and a few other options, ok
> it's fun because it's written in OCaml, but what does it add to the HTML
> compiler niche?

A fast, clean, simple, reliable, extensible, law memory footprints HTML
compiler written in a high level language, that you can easily extend
using the high level language.

> A worth mentioning direction to take can be a WML like one but using
> ocaml as an embedded language instead of perl, but this probably can
> collide with other projects like ocamlweb or similar if you plan to move
> to the SSI side.

I made the minimum that fullfilled my needs. If others want to use it,
I'm please to share it with them. If they want to extend it, I would
be glad to incoporate their extensions if they want to share them with
me. No big plans, no big deal, just a proposition to try something I
considered useful to use and would continue to develop if there are
volunteers by there.

> Just some free thougths ...
> 
> Please consider this mail as a simple roadmap question, I really
> appreciated your work, thanks. Moreover many html compiler projects died
> years ago and aren't currently actively mainted (like WML), so a young
> and well maintained projects can helps here.
>
> Cheers.
> 
> -- 
> Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
> zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
> "I know you believe you understood what you think I said, but I am not
> sure you realize that what you heard is not what I meant!" -- G.Romney
> -------------------

Thank you for your appreciation. This project is new but htmlc was used
for a long time to generate pages for the Caml web site.

May be HTMLC announce was a bit modest too, I don't know. I really
would like to share ideas and code with other programmers on the
subject of HTML pages generation using Caml. It is a practical issue:
I had so many problems with SSI that I moved to the side of statically
checked source pages (and HTML compilers).

Best regards,

Pierre Weis

INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/


-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] HTMLC
  2002-10-04  9:47   ` Pierre Weis
@ 2002-10-04 14:14     ` Stefano Zacchiroli
  2002-10-04 15:33       ` Gerd Stolpmann
  0 siblings, 1 reply; 8+ messages in thread
From: Stefano Zacchiroli @ 2002-10-04 14:14 UTC (permalink / raw)
  To: caml-list

On Fri, Oct 04, 2002 at 11:47:33AM +0200, Pierre Weis wrote:
> May be HTMLC announce was a bit modest too, I don't know. I really
> would like to share ideas and code with other programmers on the
> subject of HTML pages generation using Caml. It is a practical issue:
> I had so many problems with SSI that I moved to the side of statically
> checked source pages (and HTML compilers).

Me too and moreover most of the time is enough to build pages one for
all avoiding the use of CPU time each time a user need a page, anyway
... going back to the "share ideas" (leaving the "share code" for the
future :-)), what about the interpretation of OCaml code?

I use WML since an year and is architecture is built up from a lot of
layers (8 or 9 I didn't remeber), the more useful are two of them:
- inclusion of other files, as already implemented in htmlc (even if
  seems to me that WML does not differentiate verbatim inclusion from
  the 'normal' one, it scans sources looking for WML special tags
  anyway)
- execution of embedded perl statement (obviously I'm talking about
  execution at compile time, WML philosophy is the same as HTMLC one)

What about adding such a feature to HTMLC?
I don't know how hard is to implement such a feature, I can wonder that
it require the instantiation of an ocaml runtime while starting the
compiler, and an 'eval' like statement execution each time some ocaml
code is encountered. I know that Gerd Stoplmann is doing something like
that in PXP (embedding ocaml code in XML document), but I haven't yet
looked at it ...

IMO this can make htmlc a really interesting tool for functional
programmers.

Obviously some easy html manipulator functions can be useful, but I
suspect that many work on this subject have been already done by the
ocamlweb guys and can be used here, am I wrong?

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] HTMLC
  2002-10-04 14:14     ` Stefano Zacchiroli
@ 2002-10-04 15:33       ` Gerd Stolpmann
  2002-10-04 15:48         ` Stefano Zacchiroli
  0 siblings, 1 reply; 8+ messages in thread
From: Gerd Stolpmann @ 2002-10-04 15:33 UTC (permalink / raw)
  To: Stefano Zacchiroli; +Cc: caml-list


Am 2002.10.04 16:14 schrieb(en) Stefano Zacchiroli:
> I use WML since an year and is architecture is built up from a lot of
> layers (8 or 9 I didn't remeber), the more useful are two of them:
> - inclusion of other files, as already implemented in htmlc (even if
>   seems to me that WML does not differentiate verbatim inclusion from
>   the 'normal' one, it scans sources looking for WML special tags
>   anyway)
> - execution of embedded perl statement (obviously I'm talking about
>   execution at compile time, WML philosophy is the same as HTMLC one)
> 
> What about adding such a feature to HTMLC?
> I don't know how hard is to implement such a feature, I can wonder that
> it require the instantiation of an ocaml runtime while starting the
> compiler, and an 'eval' like statement execution each time some ocaml
> code is encountered. I know that Gerd Stoplmann is doing something like
> that in PXP (embedding ocaml code in XML document), but I haven't yet
> looked at it ...

What do you mean? I have never done something like this. Maybe you mix it
up with one of the following ideas:

- PXP supports some kind of "class selection". Depending of the name of the
  XML/HTML element, different classes can be instantiated to represent the
  element in the object tree
- In WDialog it is possible to bind ocaml code at various stages of
  page processing in order to customize the actions. The XML/HTML document and
  the ocaml code are connected by various kinds of binding tags.
  It is part of the philosphy to separate the HTML markup from the algorithm
  generating the HTML blocks from input data.

Neither of these concepts need the ocaml compiler at runtime, but I have
dynamic HTML pages in mind, so calling the compiler would be a bad idea
(security, performance, etc.).
 
Gerd
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
------------------------------------------------------------
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] HTMLC
  2002-10-04 15:33       ` Gerd Stolpmann
@ 2002-10-04 15:48         ` Stefano Zacchiroli
  0 siblings, 0 replies; 8+ messages in thread
From: Stefano Zacchiroli @ 2002-10-04 15:48 UTC (permalink / raw)
  To: caml-list

On Fri, Oct 04, 2002 at 05:33:55PM +0200, Gerd Stolpmann wrote:
> What do you mean? I have never done something like this. Maybe you mix it
> up with one of the following ideas:

Sorry, I surely remember wrong, it seemed to me that on the announcement
of some PXP development version you mentioned the support for some
special nodes in an XML document that in some way contains code, the
rest has probably been done by my imagination ...

> Neither of these concepts need the ocaml compiler at runtime, but I have
> dynamic HTML pages in mind, so calling the compiler would be a bad idea
> (security, performance, etc.).

Uhm, why do you mention the 'compiler'? IMO is enough to use the ocaml
toplevel as an interpreter, what is needed is a way with which
communicate with him. IIRC there is somewhere a toplevel module that can
be used for this purpose.

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] HTMLC
  2002-10-04  9:00 ` Stefano Zacchiroli
  2002-10-04  9:47   ` Pierre Weis
@ 2002-10-07  8:15   ` Tibor Simko
  2002-10-07 10:59     ` Stefano Zacchiroli
  1 sibling, 1 reply; 8+ messages in thread
From: Tibor Simko @ 2002-10-07  8:15 UTC (permalink / raw)
  To: Inria Ocaml Mailing List

On Fri, 4 Oct 2002, Stefano Zacchiroli wrote:
> A worth mentioning direction to take can be a WML like one but using
> ocaml as an embedded language instead of perl

This would be way cool! :-)

> Moreover many html compiler projects died years ago and aren't
> currently actively mainted (like WML)

What do you mean exactly?  AFAIK Denis Barbier responds rapidly on the
WML mailing list, issues/accepts patches, etc.  The WML project may be
"sleeping" now more than in the past, but I wouldn't call it dead...

T.
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Caml-list] HTMLC
  2002-10-07  8:15   ` Tibor Simko
@ 2002-10-07 10:59     ` Stefano Zacchiroli
  0 siblings, 0 replies; 8+ messages in thread
From: Stefano Zacchiroli @ 2002-10-07 10:59 UTC (permalink / raw)
  To: Inria Ocaml Mailing List

On Mon, Oct 07, 2002 at 10:15:39AM +0200, Tibor Simko wrote:
> > Moreover many html compiler projects died years ago and aren't
> > currently actively mainted (like WML)
> 
> What do you mean exactly?  AFAIK Denis Barbier responds rapidly on the
> WML mailing list, issues/accepts patches, etc.  The WML project may be
> "sleeping" now more than in the past, but I wouldn't call it dead...

Well, I have asked for a question on the ML a while ago and I have never
received response; and the rate of new releases seems me a bit low, but
... we are defintely going OT.

Cheers.

-- 
Stefano Zacchiroli - undergraduate student of CS @ Univ. Bologna, Italy
zack@cs.unibo.it | ICQ# 33538863 | http://www.cs.unibo.it/~zacchiro
"I know you believe you understood what you think I said, but I am not
sure you realize that what you heard is not what I meant!" -- G.Romney
-------------------
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-10-07 11:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03 20:45 [Caml-list] HTMLC Pierre Weis
2002-10-04  9:00 ` Stefano Zacchiroli
2002-10-04  9:47   ` Pierre Weis
2002-10-04 14:14     ` Stefano Zacchiroli
2002-10-04 15:33       ` Gerd Stolpmann
2002-10-04 15:48         ` Stefano Zacchiroli
2002-10-07  8:15   ` Tibor Simko
2002-10-07 10:59     ` Stefano Zacchiroli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).