XHP

1 program Added 2026-03-05T12:00:00Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: XHP-lib
Provenance: commit 7b89f78c03 · authored 2026-03-05T10:28:17+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

SMT-LIB (0.25)xHarbour (0.14)XLISP (0.12)XSharp (0.10)Habanero Java (0.10)

LLM-contributed programs

Hello World Greeting Component

Provenance: commit 7b89f78c03 · authored 2026-03-05T10:28:17+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.php · license: MIT · added: 2026-03-05T12:00:00Z
<?hh
use namespace Facebook\XHP\HTML;

async function render_greeting(string $name): Awaitable<string> {
  $xhp = <div class="greeting">
    <h1>Hello, {$name}!</h1>
    <p>Welcome to XHP templating.</p>
  </div>;
  return await $xhp->toStringAsync();
}

<<__EntryPoint>>
async function main(): Awaitable<void> {
  echo await render_greeting('World');
}

Contribute — propose a file extension

Tell us where to find evidence about XHP (mapped to pl/xhp). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/XHP/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← xHarbour xhtml →