2017 © Pedro PelĂĄez
 

library axe

Appertly XHP Extras: Some useful XHP tags and utilities

image

appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  • Thursday, December 29, 2016
  • by doublecompile
  • Repository
  • 1 Watchers
  • 1 Stars
  • 291 Installations
  • Hack
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

appertly/axe

A ppertly X HP E xtras: Some useful XHP tags and utilities for Hack/HHVM., (*1)

Packagist Build Status, (*2)

Installation

You can install this library using Composer:, (*3)

$ composer require appertly/axe
  • The master branch (version 0.x) of this project requires HHVM 3.12 and depends on XHP 2.2+.

Compliance

Releases of this library will conform to Semantic Versioning., (*4)

Our code is intended to comply with PSR-1 and PSR-2. If you find any issues related to standards compliance, please send a pull request!, (*5)

Features

Page + Layout

The class Axe\Page allows collaborating classes to influence the tags that appear on a rendered page., (*6)

:axe:layout takes a Axe\Page object and renders a correct HTML document complete with DOCTYPE, html, head, and body tags. Any settings in the Axe\Page object will appear in the rendered :axe:layout., (*7)

$page = new Axe\Page();
$page->setTitle('My example title')
    ->addBodyScript('/script.js')
    ->addBodyClasses(['foo', 'bar'])
    ->addStylesheet('/styles.css')
    ->addHeadScriptInline('console.log("Hello world!");');
$html = <axe:layout page={$page}><p>Hello world!</p></axe:layout>;
echo (string)$html;
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf8">
        <title>My example title</title>
        <script>console.log("Hello world!");</script>
        <link rel="stylesheet" href="/styles.css">
    </head>
    <body class="foo bar">
        <p>Hello world!</p>
        <script src="/script.js"></script>
    </body>
</html>

Helper Tags

We've included several helper tags for common stuff., (*8)

  • Gravatar image
  • Columns (and golden ratio columns)
  • Bootstrap-compatible breadcrumbs, form groups, pagination, and fieldsets
  • Nearly Bootstrap-compatible alerts
  • Email and Phone Number links
  • Convert text with line endings to multiple <p>s
  • <select> and <option>s generated from a Map of values
  • <input type="checkbox"> or <input type="radio"> and <label>s generated from a Map of values
  • 
and more!

The Versions

29/12 2016

dev-master

9999999-dev http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

29/12 2016

0.2.7

0.2.7.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

05/12 2016

0.2.6

0.2.6.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

28/09 2016

0.2.5

0.2.5.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

13/09 2016

0.2.4

0.2.4.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

12/09 2016

0.2.3

0.2.3.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

12/07 2016

0.2.2

0.2.2.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

10/07 2016

0.2.1

0.2.1.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

18/05 2016

0.2.0

0.2.0.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp

05/05 2016

0.1.0

0.1.0.0 http://github.com/appertly/axe

Appertly XHP Extras: Some useful XHP tags and utilities

  Sources   Download

MIT

The Requires

 

The Development Requires

hack hhvm xhp