Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on May 14, 2015
  1. @fredemmott

    Render/process everythign recursively - turn XHP tree into an async tree

    fredemmott authored
    - all tests pass, including tests added that failed against previous PR
    - every element renders itself and it's children
    - all child rendering is async
    - so, the XHP tree becomes a corresponding async tree
    
    This means that asyncRender() at different depths in the tree can be executing simultaneously.
    
    There shouldn't be much of a performance cost, as HHVM should convert things things
    to a StaticWaitHandle when XHPAsync isn't being used.
    
    fixes facebook/xhp-lib#136
    fixes facebook/xhp-lib#85
    fixes facebook/xhp-lib#139
Commits on May 8, 2015
  1. @fredemmott
  2. @fredemmott
  3. @fredemmott
  4. @fredemmott
Commits on May 5, 2015
  1. @fredemmott
  2. @fredemmott
  3. @fredemmott
Commits on May 1, 2015
  1. @fredemmott

    Automatically call transferAttributes as needed.

    fredemmott authored
    - split out XHPBaseHTMLHelpers to just implement the ID and class helpers
      without transferAttributes
    - added tests
    - XHPHelpers should probably be renamed to XHPHTMLHelpers in XHP-Lib 3, and
      the bulk of the transfer/copyattribtues functiontionality split to
      XHPTransferAttributes or something like that. Keeping like this for now to
      reduce BC breakage
    - Allows implementation of non-HTML helpers; until the above modification happens
      this will involve copypasta, but better than the current situation.
    - I /think/ this gets rid of the render()/compose() pattern.
    
    fixes facebook/xhp-lib#130
    closes facebook/xhp-lib#133
Commits on Apr 23, 2015
  1. @fredemmott
Commits on Apr 22, 2015
  1. @fredemmott

    Make XHPAsync implement the XHPAwaitable trait

    fredemmott authored
    Slightly reduces boilerplate, and it's just a marker interface.
Commits on Mar 19, 2015
  1. @fredemmott
Commits on Mar 12, 2015
  1. @fredemmott
  2. @fredemmott
Commits on Mar 11, 2015
  1. @fredemmott

    Add typechecker to test runs.

    fredemmott authored
    Done as a PHPunit test so that if a contributor runs phpunit they'll see it.
Commits on Mar 10, 2015
  1. @fredemmott

    Add ReflectionXHPClass

    fredemmott authored
    Not much more was needed. Also made ReflectionXHPAttribute stringable.
  2. @fredemmott
  3. @fredemmott
Commits on Mar 9, 2015
  1. @fredemmott
Commits on Mar 8, 2015
  1. @simonwelsh

    Correct case of assertSame

    simonwelsh authored
Commits on Mar 7, 2015
  1. @fredemmott

    Add deprecation warnings for all coercions

    fredemmott authored
    Optionally, don't, or throw exceptions. Also, add tests.
  2. @fredemmott
Commits on Mar 6, 2015
  1. @fredemmott

    Implement support for Hack enums

    fredemmott authored
    fixes facebook/xhp-lib#117
    Also added test.
Commits on Mar 5, 2015
  1. @fredemmott
  2. @fredemmott
  3. @fredemmott
  4. @fredemmott

    Test new containers too

    fredemmott authored
  5. @fredemmott
  6. @fredemmott

    And floats

    fredemmott authored
  7. @fredemmott

    Make bool coercion tighter

    fredemmott authored
  8. @fredemmott
  9. @fredemmott
  10. @fredemmott

    Start adding tests for attribute validation

    fredemmott authored
    I'm about to start refactoring this, so want some tests first.
    
    Found a sort-of bug, and made string attributes throw an
    XHPInvalidAttributeException if given something non-stringable; previously,
    the cast would be tried and failed.
Commits on Feb 18, 2015
  1. @fredemmott
  2. @fredemmott

    add escaping test

    fredemmott authored
Something went wrong with that request. Please try again.