GithubHelp home page GithubHelp logo

alijaya / cocktail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silexlabs/cocktail

0.0 2.0 0.0 326.17 MB

An HTML/CSS rendering engine for the Haxe language

Home Page: http://www.silexlabs.org/haxe/cocktail/

License: Other

Haxe 98.76% JavaScript 0.80% HTML 0.25% CSS 0.19%

cocktail's Introduction

Cocktail, an HTML/CSS rendering engine for the Haxe language

  • Cocktail is implementing the W3C HTML and CSS standards in Haxe.

  • With Cocktail, write HTML/CSS applications in Haxe and build them for OpenFL and flash/Air. As Cocktail uses the standard DOM API, you can also build your app to regular JavaScript.

  • Use it by embedding it inside your app/game, like a webview, and create your UI in HTML/CSS.

Project home page

For tutorials, demos and community support : http://www.silexlabs.org/haxe/cocktail/

See you there !

Interactive demo

If you want to try cocktail in your browser : http://demos.silexlabs.org/trycocktail/

Requirements

Cocktail is a library for the Haxe programming language, you should be familiar with it to use Cocktail. Being familiar with NME (another Haxe library) can also help but is not required to use Cocktail.

Building

  1. Cocktail is written for Haxe 3, you need to download and install it first:

  2. Cocktail is available on haxelib, once Haxe is installed, open you command prompt and type:

haxelib install cocktail

  1. Optionnaly, if you also want to build for OpenFL as well as flash/Air :

haxelib install openfl

You can find additional install info on the OpenFL site

  1. You can build now ! Haxe uses .hxml files to build projects. You should start with the samples provided in the folder of the cocktail haxelib. Haxelibs are installed in the folder of your Haxe installation. Each sample has a build folder containing .hxml files. To build, open you command prompt and type :

haxe mybuildfile.hxml

If you're on windows, you can just double-click the .hxml file instead. 5. If you've made it this far, you should check the getting started tutorial !

Maturity

This project has been used in production by core members of the project which could easily debug it. So it's getting stable but expect quirks, especially when using some tricky CSS layout. The API however, as it is based on the W3C standards is very stable.

Haxe 2

For Haxe 2 users, cocktail is also available on haxelib, although the Haxe 2 version won't be maintained.

Licence

Cocktail is open-source, released under the MIT licence, see licence.txt.

######Lead developer : Yannick Dominguez

cocktail's People

Contributors

yanhick avatar codam avatar lexoyo avatar zabojad avatar clemos avatar skylerparr avatar ooflorent avatar sspecht avatar tc218 avatar

Watchers

Ali Jaya Meilio avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.