The Haxe Code Cookbook
Haxe CSS JavaScript Shell
Latest commit 3100ff1 Jan 5, 2017 @markknol markknol deferred script loading
Failed to load latest commit information.
assets deferred script loading Jan 5, 2017
src trace total articles Jan 3, 2017
.travis.yml dont use nodejs yet Sep 23, 2016
CodeCookBook.hxml internal code restructuring Nov 9, 2016
CodeCookBook.n internal code restructuring Nov 9, 2016
CodeCookBookNodeJS.hxml Update Jan 2, 2017
RunCodeCookBook.hxml internal code restructuring Nov 9, 2016

Haxe Code Cookbook

Build Status

Sources for the Haxe Code Cookbook site

This project contains a static website generator, it is mixing templates and markdown files into plain HTML files.


Contributing articles

Please add/edit the articles (markdown files) in the assets folder and do a pull request.


It would be nice if you keep the formatting of the code in the same style as used already:

  • Braces on same line
  • Two-space indentation
  • No type-hints for local variables and function return unless it's instructive
  • Type-hints for fields
  • Type-hints for function arguments unless it's very obvious
  • Judicious use of extra line-breaks to avoid ugly automatic breaks (check the output)
Other remarks
  • The first heading is used in the navigation. Keep this title short.
  • The first paragraph is used as description. Describe what the content of the article is about.
  • Tag the article using [tags]: / "tag1,tag2" (no spaces). Try to use an existing tag.
  • Mention the author / sources at the bottom of the page.
  • If you want to include a code snippet use [tryhaxe](
  • If you want to include a YouTube video use [youtube](
  • If possible, link to related pages in the Haxe Manual / API documentation.
  • If you want to use images or other includes, create a folder called assets in the same directory as the article and link to that.

This would be a typical template to use. Use ```haxe for syntax highlighting:

[tags]: / "class,array,json,building-fields"

# Title of the page

Description and explanation of the code.

## Implementation
class Main {
  // Code here

## Usage
class Test {
  // Code here

> More on this topic: 
> * [Class field in Haxe Manual](
> Author: [Name](

Running a local copy

To run the project you need Haxe.

Call build-site.bat to re-generate the output files.

Contributing to the generator

You need Haxe 3.2+ installed.

The static site generator source depends on hxtemplo and markdown. Install from haxelib:

haxelib install CodeCookBook.hxml

The CSS files are compressed using less. Install from npm:

npm install -g less
npm install -g less-plugin-clean-css