Jalapeno
From Jalapeno
The Idea
Jalapeno is a prototype template system for php designed to further separate concerns. The main goal is to separate the view (as in mvc) into the presentation logic and visual elements.
(add image)
Often frameworks try and use template systems directly as the view. This results in php mixed in with html, display logic mixed in with the html. It is not easy for either the php developer or the web designer to work with.
Jalapeno eliminates this by pushing all the display logic to the php side. The templates remain php and logic free. In fact they are pure xhtml. There is no need for if/else, while statements or any other logic in your html.
There are many benefits to this
- Much easier development and debugging.
- Templates are pure xhtml/xml allowing editing using standard xhtml/xml tools.
- Templates are previewable - You can view them directly in the browser.
Where to now?
The site has been split up into two sections: Users of Jalapeno (template developers) and developers who would like to contribute to Jalapeno. Jalapeno is still in early prototype stages and I welcome feed back from both users and developers (you can use the discussion links).
For users I would like to hear thoughts on the API, is it clear and logical? The API is not fixed in stone, I'm more then happy to improve it. I'm also open to new ideas for additions to Jalapeno (as long as they adhear to the project goals)
As for developers, there are many ways to skin a cat. I would like thoughts on the pros and cons for different approaches to features, for example, caching. And of course I welcome contributions, you can can checkout Jalapeno from the subversion repository.
Links:
