From: Sylvain Le Gall <sylvain@le-gall.net>
To: caml-list@inria.fr
Subject: Re: Help with Elliom syntax
Date: Thu, 4 Nov 2010 12:31:35 +0000 (UTC) [thread overview]
Message-ID: <slrnid59t7.r67.sylvain@gallu.homelinux.org> (raw)
In-Reply-To: <op.vlm9jrm2soui26@mail.gmx.net>
Hello,
On 04-11-2010, Till Crueger <Till.Crueger@gmx.net> wrote:
> Hi,
>
> I am still trying to find my way with Elliom and Ocsigen. Right now I can
> use OCaml to generate the pages I want, but I still have problems to
> figure out how to encode the XHTML. The main question I have is how to
> assign attributes to elements,
> like div blocks or others. I found the a_id functions that should return
> an id object, but I have not figured out how to use it to actually assign
> the id.
>
Most of the time you have an ~a parameter.
Example:
div ~a:[a_class ["statistics"]] [ h2 [pcdata "Statistics"]; ... ]
Regards,
Sylvain Le Gall
next prev parent reply other threads:[~2010-11-04 12:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-04 11:44 Till Crueger
2010-11-04 12:31 ` Sylvain Le Gall [this message]
2010-11-04 13:49 ` [Caml-list] " Till Crueger
2010-11-04 14:37 ` Sylvain Le Gall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrnid59t7.r67.sylvain@gallu.homelinux.org \
--to=sylvain@le-gall.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox