A simple lib to turn a XML or JSON to a static presskit HTML page. Super easy to extend and adapt to your own needs, without having to modify the source code!

press, presskit, game-development, haxe
haxelib install presskit 1.1.0


Presskit for Haxe

Presskit is a simple Haxe library that generates static HTML presskits from either XML or JSON source files.

  • Use either XML (recommended) or JSON to feed a HTML template.
  • Everything can be customized.
  • Basic Markdown is supported: bold, italic, striked, links, lists and nested lists.

You can see an example of a generated presskit here:


You need Haxe to run this library.

Install the lib:

haxelib install presskit


Method 1 - Use the existing default HTML template

Generate an empty Presskit file in your prefered format.

XML (recommended):

haxelib run presskit -extract myPresskit.xml


haxelib run presskit -extract myPresskit.json

Why is XML recommended over JSON in 2021 you might wonder? Simply because the ouput is an HTML file, and XML format is more convenient for this exact purpose.

Now just edit your presskit file and fill in the fields.

When you're ready to generate your HTML presskit page, run the following command:

haxelib run presskit -html myPresskit.xml [-zip]

The -html indicates to switch to HTML generation mode.

The optional -zip argument will generate a ZIP archive and add a "Download everything as ZIP" to the HTML page.

Method 2 - Create your own HTML template first

Custom HTML template

Create some HTML file containing variables named like %productName%. It's a good idea to start from the existing default HTML template. Don't forget to grab the CSS along with it.

<div class="presskit">
		<dt>Product name</dt>


Run this command to extract all variables (eg. %productName%) and build a XML or JSON out of it:


Syntax of HTML template variables

Your variable names can contain / (slashes) to create some hierarchy in your presskit file:

<div class="presskit">
	<div class="desc">



There are a few special reserved variable names for your template:

  • %zip/status%: this will contain either "on" or "off", depending on the -zip argument being used or not. This is used to add a CSS class to the "Download ZIP" button, to either show or hide it.
  • %zip/path%: relative path to the generated ZIP file.

Build your final HTML presskit

You can then fill this file, and build your HTML final presskit using:

haxelib run presskit -html myPresskitFile.xml myCustomTemplate.html


HTML template:

<html lang="en">
	<head> [...] </head>

		<div class="presskit">
			<h2> %game/title% (by %company/name%)</h2>
			<div class="desc"> %game/desc% </div>
			<div class="desc"> Website: %game/url% </div>

Its corresponding XML:

	<title> Nuclear Blaze </title>

	<url> [Steam page]( </url>

		<img src="img/keyart.png"/>

		A **unique** 2D firefighting game from the creator of **[Dead Cells](**, with all the devastating backdrafts, exploding walls and sprinklers you could expect.

		- This game is cool,
		- Another bullet point,
		- And a last one.

	<name> Deepnight Games </name>


	"game": {
		"title": "Nuclear Blaze",
		"url": "[Steam page](",
		"desc": [
			'<img src="img/keyart.png"/>',
			'A **unique** 2D firefighting game from the creator of **[Dead Cells](...)**, with all the devastating backdrafts, exploding walls and sprinklers you could expect.',

			'- This game is cool',
			'- Another bullet point',
			'- And a last one'
	"company": {
		"name": "Deepnight Games"