ufront-client

Ufront running in the Browser - for isomorphic web apps and single page apps. Please note this haxelib does not contain any source files, but just defines dependencies for creating ufront apps that run client side.
https://github.com/ufront/ufront-client

To install, run:

haxelib install ufront-client 2.0.0 

See using Haxelib in Haxelib documentation for more information.

README.md

ufront-client

Ufront is a powerful MVC web framework written in Haxe. ufront-client is a collection of libraries that allow you to run Ufront apps client-side, in the browser using Javascript. You can share most of your code with the server and communicate seamlessly.

This repository actually does not contain any source, rather just a haxelib.json and extraParams.hxml that include the required libraries and parameters, so you can just add -lib ufront-client to your projects.

Example Setup:

import ufront.app.ClientJsApplication;
import app.controller.*;

class Client {
	static var clientApp:ClientJsApplication;

	static function main() {
		clientApp = new ClientJsApplication({
			indexController: HomeController,
			defaultLayout: "layout.html"
		});

		// Listen to any history changes using PushState, and process each request.
		clientApp.listen();
		// Process the current request. Only need to run this if the server didn't render the page already.
		clientApp.executeRequest();
	}
}
Contributors
jason
Version
2.0.0
Published
2 years ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github