XHP

Software Screenshot:
XHP
Software Details:
Version: 2.2.2 updated
Upload Date: 1 Oct 15
Developer: Facebook
Distribution Type: Freeware
Downloads: 30

Rating: 3.0/5 (Total Votes: 1)

This basically transforms PHP into a template engine, by giving it the possibility to reuse data as it wants to.

XHP works by parsing and interpreting content found inside curly braces {} as a full PHP expression, usually used only for variables.

By enhancing this default syntax the developer can now reuse code much easier, making XHP ideal for coding user interfaces and templated layouts.

Usage instructions are included with the XHP's README file.

What is new in this release:

  • Convert to Hack. The 1.x release series is still supported for users of PHP5
  • Added AwaitableXHP ; this allows you to build efficient XHP components where data fetching requirements are an implementation detail instead of part of the API they present
  • Attribute coercion is now much stricter, and raises an E_DEPRECATED. In a future release, the Hack typechecker will consider any coercion to be an error, and XHP-Lib will throw an exception.
  • Added XHPUnsafeRenderable and XHPAlwaysValidChild interfaces, making it easier to include markup from other sources in an XHP tree. See MIGRATING.md for more information
  • Split out getID() , addClass() , transferAttributes() and friends from :x:html-element to a new XHPHelpers trait, which implements the new HasXHPHelpers interface
  • Add new XHPRoot interface, implemented by :x:primitive and :x:composable-element . This is the return type of render()
  • Removed Callable attribute type, as this is not supported by Hack
  • Functions that dealt with arrays (eg getAttributes() ) now use Vector, Map, or Set
  • Added reflection; ReflectionXHPClass is the main entry point

What is new in version 2.2.0:

  • Convert to Hack. The 1.x release series is still supported for users of PHP5
  • Added AwaitableXHP ; this allows you to build efficient XHP components where data fetching requirements are an implementation detail instead of part of the API they present
  • Attribute coercion is now much stricter, and raises an E_DEPRECATED. In a future release, the Hack typechecker will consider any coercion to be an error, and XHP-Lib will throw an exception.
  • Added XHPUnsafeRenderable and XHPAlwaysValidChild interfaces, making it easier to include markup from other sources in an XHP tree. See MIGRATING.md for more information
  • Split out getID() , addClass() , transferAttributes() and friends from :x:html-element to a new XHPHelpers trait, which implements the new HasXHPHelpers interface
  • Add new XHPRoot interface, implemented by :x:primitive and :x:composable-element . This is the return type of render()
  • Removed Callable attribute type, as this is not supported by Hack
  • Functions that dealt with arrays (eg getAttributes() ) now use Vector, Map, or Set
  • Added reflection; ReflectionXHPClass is the main entry point

What is new in version 2.1.0:

  • Convert to Hack. The 1.x release series is still supported for users of PHP5
  • Added AwaitableXHP ; this allows you to build efficient XHP components where data fetching requirements are an implementation detail instead of part of the API they present
  • Attribute coercion is now much stricter, and raises an E_DEPRECATED. In a future release, the Hack typechecker will consider any coercion to be an error, and XHP-Lib will throw an exception.
  • Added XHPUnsafeRenderable and XHPAlwaysValidChild interfaces, making it easier to include markup from other sources in an XHP tree. See MIGRATING.md for more information
  • Split out getID() , addClass() , transferAttributes() and friends from :x:html-element to a new XHPHelpers trait, which implements the new HasXHPHelpers interface
  • Add new XHPRoot interface, implemented by :x:primitive and :x:composable-element . This is the return type of render()
  • Removed Callable attribute type, as this is not supported by Hack
  • Functions that dealt with arrays (eg getAttributes() ) now use Vector, Map, or Set
  • Added reflection; ReflectionXHPClass is the main entry point

What is new in version 2.0.0:

  • Convert to Hack. The 1.x release series is still supported for users of PHP5
  • Added AwaitableXHP ; this allows you to build efficient XHP components where data fetching requirements are an implementation detail instead of part of the API they present
  • Attribute coercion is now much stricter, and raises an E_DEPRECATED. In a future release, the Hack typechecker will consider any coercion to be an error, and XHP-Lib will throw an exception.
  • Added XHPUnsafeRenderable and XHPAlwaysValidChild interfaces, making it easier to include markup from other sources in an XHP tree. See MIGRATING.md for more information
  • Split out getID() , addClass() , transferAttributes() and friends from :x:html-element to a new XHPHelpers trait, which implements the new HasXHPHelpers interface
  • Add new XHPRoot interface, implemented by :x:primitive and :x:composable-element . This is the return type of render()
  • Removed Callable attribute type, as this is not supported by Hack
  • Functions that dealt with arrays (eg getAttributes() ) now use Vector, Map, or Set
  • Added reflection; ReflectionXHPClass is the main entry point

What is new in version 1.6.0:

  • As this repository no longer includes a PHP5 extension, the Zend and PHP licenses are not appropriate. Relicensed as BSD
  • You can now add XHP to your composer-based PHP project (facebook/xhp-lib)
  • Other markup can now be embedded in XHP via the XHPUnsafeRenderable and XHPAlwaysValidChild interfaces - see MIGRATING.md for details
  • Provide toString() as well as __toString(). They are identical, however calling toString() will give you much nicer backtraces
  • Validation was overly strict. Relaxed.
  • Added HTML conditional comments
  • Improved support for Hack Vectors, Sets, and Maps
  • Support nested array specifications - eg array<array<string, int>>
  • Single quotes are now allowed in HTML attributes without being escaped

What is new in version 1.4:

  • Support for PHP 5.5.
  • Upgrades to HTML5 specifications.
  • Bug fixes.

Similar Software

Apache XMLBeans
Apache XMLBeans

13 Apr 15

Apache Xalan Java
Apache Xalan Java

13 Apr 15

zXml
zXml

5 Jun 15

XPath.js
XPath.js

5 Jun 15

Other Software of Developer Facebook

Comments to XHP

Comments not found
Add Comment
Turn on images!