Tony Polinelli
Tarwin Stroh-Spijer

contact [at]
touchmypixel.com

6/25 Easey Street
Collingwood, 3066
Vic, Australia

+61 3 8060 5321

Poko Project

POKO 0.5 Release

Download: check out the googlecode site

Overview

Poko is a mini framework for making haxe websites found in src/poko

The framework is basically used to serve web requests.

eg. “site.com?request=MyRequest” will search for a classfile named ‘site.MyRequest’ (site is appended to all requests).

When a request is found (otherwise a 404 is called), events are called, notably main() will be called which should be the entry point for a page request.
see blog.touchmypixel.com for details.

Requests

Requests extend a TemploObject class. This allows you to define properties on the request class (the class you make) which are automatically accessible to templo templates. In this way the templating is closely knit with the page controller (the Request class). You can access methods of the request in templo via ::controller.method():: the templo .mtt file will be automatically associated with the Request file, if it sits next to it and is named the same. You shouldnt need to use the ‘controller’ variable in the futureĀ  – but directly access methods.. need to fix this ;P

eg. MyRequest.hx will use template file MyRequest.mtt

Request Templates

Requests directly extend the base ‘Request’ class or can extend a ‘template’ class. This will allow you to setup a basic layout for a webpage, including headers and footers.As a Request directly extends Templates and all components can be strongly typed, while all associating their own display files (.mtt) – you should have code completion and access to more/all visual variables of your page.
eg. request.navigation.items.get(“home”).title = “The Homepage” – might change the title for the home link in your navigation.

Components

Components define smaller segments of reusable functionality. They can also have associated .mtt files for display, or use the setOutput().

Forms

Forms – the src/fwork/forms – contains useful form classes for building forms with full validation & useful repopulation of values.

ImageProcessor

site.services.Image – this is an image service which uses the ImageProcessor class. You can queue a list of actions to apply to images. These include, cropping to an aspect, resizing, rotating, etc. After processing a set of actions, the image will be cached to res/uploads/cache. In this way any image processing should only be done once.


poko cms

The cms is a tool for managing database tables and website pages. You can easily add metadata to define how CRUD tables will be genereted & allow users to manage data in a userfriendly way.

Our Friends:

Powered by haXe / poko cms | Copyright 2008-09 TouchMyPixel