Skip to end of metadata
Go to start of metadata
New Proposal Template
This page has been created from a template that uses "zones." To proceed:
  1. Edit the page
  2. Replace sample content within each zone-data tag
  3. Remove this notice
  4. Save the page
  5. When you are ready for review, remove the Under Construction notice

Zend Framework: Zend_View_pHAML Component Proposal

Proposed Component Name Zend_View_pHAML
Developer Notes http://framework.zend.com/wiki/display/ZFDEV/Zend_View_pHAML
Proposers My E-mail Address
Revision 1.1 - 1 August 2006: Updated from community comments. (wiki revision: 9)

Table of Contents

1. Overview

Zend_View_pHAML brings the DRY HAML markup to the Zend Framework templates. pHAML provides a quick way to build XHML and XML documents quickly with full support of Zend View helpers.

This contribution has two components:

  • An subclass of the Zend_View interface that parses the view script through the pHAML engine before PHP rendering.
  • A Zend_View_Helper class that will render pHAML.

2. References

3. Component Requirements, Constraints, and Acceptance Criteria

pHAML subclasses Zend_View and Zend_View_Helper

4. Dependencies on Other Framework Components

  • Zend_View

5. Theory of Operation

Basically assign this view in the bootstrap, assign the proper suffix (we use .hml), and off you go....

6. Milestones / Tasks

  • Milestone 1: Development and incubator check in of Unit Test for HAML compliance
  • Milestone 2: Development and incubator check in of Zend_View class tests.
  • Milestone 3: Development and incubator check in of Zend_View_Helper class.
  • Milestone 4: Development and incubator check in of Zend_View class tests.
  • Milestone 5: Development and incubator check in of Zend_View_Helper class.

NOTE: This code is derived from live ZF based code from the Autonomic Services Framework, that has been in production for over 5 years (was ported to ZF when ZF was beta).

7. Class Index

  • Zend_View_Phaml

8. Use Cases

Please refer to examples : * pHAML Examples

9. Class Skeletons

Labels:
template template Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. May 14, 2008

    Is this proposal ready for community review? If so, please reparent it to the 'ready for review' section and announce it on the appropriate mailing list.

    Thanks.
    ,Wil

  2. Feb 08, 2011

    Archiving this proposal, feel free to recover it when you want to work on it again. For more details see this email.