- Project goal: Objective template library for rapid developement of
small websites. PHP implementation, but not limited to PHP.
- Developement status: Early sketches
- Release date: Unknown
- License: Open-source
Planned features:
- Designer friendly – simple to use and learn
- Respecting the DOM and box-model of HTML documents
- Fluent objective interface
- No "presentation logic" crap like for cycle or if statement
- Implemented in PHP
- Possible to implement in other languages to make templates langugage independent
Preview:
Display contents of a shopping cart as an ul list:
<<Cart.contents().ul();>>
Display contents of a shopping cart excluding fruits as an ul list with class "someclass":
<<Cart.contents(
{"exclude":"fruits"}
).ul({"class":"someclass"});>>
The principle is like:
Object.action(
{"parameter":"value"}
).modifier({"parameter":"value"})
Hey, that looks familiar, right? It looks like jQuery or something!
HTML coders shouldn't care about asssigning variables, looping through
a set of values and so on. They should call a shopping cart and get a shopping cart!
There should be no need for coders to dig into a program code. Tha's programmers job.
And programmer shouldn't care what's in the template.