Sophie

Sophie

distrib > Mageia > 6 > x86_64 > media > core-release > by-pkgid > 6f561113d00b3551f8b409460892e508 > files > 13

ocaml-textile-0.10-6.mga6.x86_64.rpm

Textile markup language support for OCaml
========================================

Features :
----------

* currently it supports most of textile syntax
* translating textile to an AST
* translating the AST to XHTML
* translating the AST to TyXML's XHTML (ocsigen support)
* 'textiler' command which takes textile and returns XHTML
* 'textiler_duce' - the same but maked with OCamlduce

Building :
----------

First you need to get
* an OCaml compiler >= 3.11 (http://caml.inria.fr/ocaml);
* GNU Make (http://www.gnu.org/software/make/);
* findlib which provide ocamlfind command
  (http://projects.camlcity.org/projects/findlib.html);
* extlib for OCaml (http://www.cduce.org/ocaml.html)

Optionaly (for OCamlduce support):
* OCamlduce - modified OCaml compiler (http://www.cduce.org/ocaml.html)
* TyXML (http://ocsigen.org/tyxml/)

Then run:

$ make

If you need api docs then run:

$ make doc

And watch the doc/ directory.

You can also compile textiler utility:

$ make textiler

And test it:

$ echo 'h1. Hello *world*!' | ./textiler
<h1>Hello <strong>world</strong>!</h1>

Installation :
--------------

$ sudo make install

See also
--------

* textile-ocaml home: http://komar.bitcheese.net/en/code/textile-ocaml