raphinou / ocsigen_tutowidget Goto Github PK
View Code? Open in Web Editor NEWCode from tutorial at http://ocsigen.org/tuto/manual/tutowidgets
Code from tutorial at http://ocsigen.org/tuto/manual/tutowidgets
Instructions ============ This project is (initially) generated by eliom-distillery as the basic project "ex". Generally, you can compile it and run ocsigenserver on it by $ make test.byte (or test.opt) See below for other useful targets for make. Generated files --------------- The following files in this directory have been generated by eliom-distillery: - ex.eliom This is your initial source file. All Eliom files (*.eliom, *.eliomi) in this directory are automatically considered. To add a .ml/.mli file to your project, append it to the variable SERVER_FILES or CLIENT_FILES. - static/ The content of this folder is statically served. Put your CSS or additional JavaScript files here! - Makefile.options Configure your project here! - ex.conf.in This file is a template for the configuration file for ocsigenserver. You will rarely have to edit itself - it takes its variables from the Makefile.options. This way, the installation rules and the configuration files are synchronized with respect to the different folders. - Makefile This contains all rules necessary to build, test, and run your Eliom application. You better don't touch it ;) See below for the relevant targets. - local/ This directory is the target of the temporary installation of your application, to test locally before doing a system-wide installation in /. Do not put anything manually here. - README Not completely describable here. Makefile targets ---------------- Here's some help on how to work with this basic distillery project: - Test your application by compiling it and running ocsigenserver locally $ make test.byte (or test.opt) - Compile it only $ make all (or byte or opt) - Deploy your project on your system $ sudo make install (or install.byte or install.opt) - Run the server on the deployed project $ sudo make run.byte (or run.opt) If WWWUSER in the Makefile.options is you, you don't need the `sudo'. If Eliom isn't installed globally, however, you need to re-export some environment variables to make this work: $ sudo PATH=$PATH OCAMLPATH=$OCAMLPATH LD_LIBRARY_PATH=$LD_LIBRARY_PATH make run.byte/run.opt - If you need a findlib package in your project, add it to the variables SERVER_PACKAGES and/or CLIENT_PACKAGES. The configuration file will be automatically updated.
Hi,
I am getting a compile error after cloning the repo and doing make test.bye -- part of the console log:
eliomc -infer ex.eliom
js_of_eliom -c ex.eliom
File "ex.eliom", line 12, characters 19-37:
Error: The type of this expression,
(_[> Html5_types.div ] Eliom_content.Html5.D.elt -> unit) ref,
contains type variables that cannot be generalized
Versions are: ocaml 4.02.3, ocsigenserver 2.6, eliom 4.2.0, js_of_ocaml 2.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.