Aah

Aah (Amazingly Abstracted HTML) is a lightweight markup language written in PHP. Inspired by the likes of Haml and Sass, Aah hopes to make writing HTML within your PHP applications clean, simple, and fun.

Aah is still very much in development, but it is at a some-what stable point. Using Aah in a production environment is not recommended, however if you would like to give Aah a try please read Getting Started.

Be sure to follow development on Twitter!

Quick Example

Aah Code

!!!
+html
    +head
        +title: Aah!
        +meta{"http-equiv" => "Content-Type", "content" => "text/html; charset=utf-8"}
        +link{"rel" => "stylesheet", "href" => "main.css", "type" => "text/css"}
    +body
        // This is an example of a comment.
        +header
            +h1: My Website
        +main
            +p
                Hello my name is %name. This is an example of an Aah document.
            +p
                Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod.
            +h3: My Favorite Shows
            +ul
                ?foreach(%shows as %show):
                    +li: %show
                ?endforeach
        +footer
            +p
                ©2015 My Page

HTML Output

<!DOCTYPE html>
<html>
    <head>
        <title>Aah!</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <link rel="stylesheet" href="main.css" type="text/css">
    </head>
    <body>
        <header>
            <h1>My Website</h1>
        </header>
        <main>
            <p>Hello my name is Matt. This is an example of an Aah document.</p>
            <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod.</p>
            <h3>My Favorite Shows</h3>
            <ul>
                <li>The Simpsons</li>
                <li>Sherlock</li>
                <li>The Office</li>
            </ul>
        </main>
        <footer>
            <p>&copy;2015 My Page</p>
        </footer>
    </body>
</html>