# CaTML (Cat Altered Text Markup Language) ๐Ÿพ > Standard HTML is for humans. **CaTML** is for fine felines. CaTML is a lightweight, zero-dependency HTML compiler and runtime written in JavaScript that translates feline markup tags and attributes directly into standard semantic HTML. Repository: [https://git.p20.dev/christian/CaTML.git](https://git.p20.dev/christian/CaTML.git) --- ## ๐Ÿš€ Quick Start ### 1. In HTML with ` ``` ### 2. Standalone Page (``) You can even write the entire document root in CaTML: ```html Kitty Portal Welcome! The world is feline now. ``` ### 3. JavaScript API ```javascript // Compile to HTML string const html = CatML.compile('Meow!'); console.log(html); //

Meow!

// Render directly into a DOM element CatML.render('Meow!', document.getElementById('app')); ``` --- ## ๐Ÿ“– Feline Dictionary ### Core Tags | CaTML Tag | HTML Tag | Feline Concept / Description | |---|---|---| | `` / `` | `` | The whole cat universe | | `` | `` | Metadata & sensory inputs | | `` | `` | Identification | | `<fur>` | `<body>` | The visible body | | `<box>` / `<cardboard>` | `<div>` | If it fits, I sits (container) | | `<feather>` / `<mouse>` | `<span>` | Small things to chase | | `<meow1>` ... `<meow6>` | `<h1>` ... `<h6>` | Headings (from roar to tiny squeak) | | `<purr>` | `<p>` | Steady purring paragraph | | `<scratch>` | `<a>` | Hyperlink (scratch and jump) | | `<stare>` | `<img>` | Image (what the cat stares at) | | `<bap>` / `<paw>` | `<button>` | Action button (bap items off tables) | | `<sniff>` | `<input>` | Input field | | `<yowl>` | `<textarea>` | Multi-line text field | | `<bowl>` | `<ul>` | Food bowl / list | | `<numbered-bowl>` | `<ol>` | Ordered list | | `<treat>` | `<li>` | Single treat / list item | | `<claw>` | `<strong>` / `<b>` | Sharp emphasis | | `<hiss>` | `<em>` / `<i>` | Italic hissed tone | | `<catnip>` | `<script>` | JavaScript (gives zoomies!) | | `<groom>` | `<style>` | CSS styling | | `<litterbox>` | `<footer>` | Bottom footer | | `<nap>` | `<hr>` | Rest / horizontal rule | | `<door>` | `<form>` | Form container | | `<curtain>` | `<header>` | Page header | | `<shelf>` | `<nav>` | Navigation bar | | `<hammock>` | `<main>` | Main content | | `<perch>` | `<section>` | Section | ### Attributes | CaTML Attribute | HTML Attribute | Description | |---|---|---| | `catch="..."` | `href="..."` | Destination URL to chase | | `prey="..."` | `src="..."` | Source image URL | | `scent="..."` | `alt="..."` | Alt text / scent profile | | `tag="..."` | `id="..."` | ID attribute | | `breed="..."` | `class="..."` | CSS class attribute | | `fluff="..."` | `style="..."` | Inline CSS styles | | `on-bap="..."` | `onclick="..."` | Click event listener | | `on-sniff="..."` | `oninput="..."` | Input event listener | | `on-change="..."` | `onchange="..."` | Change event listener | | `on-stalk="..."` | `onmouseover="..."` | Mouseover event listener | | `on-pounce="..."` | `onmousedown="..."` | Mousedown event listener | | `treat-type="..."` | `type="..."` | Input type (`text`, `number`, etc.) | | `kibble="..."` | `value="..."` | Input value | | `curiosity="..."` | `placeholder="..."` | Placeholder text | | `collar-name="..."` | `name="..."` | Name attribute | --- ## ๐ŸŽฎ Interactive Playground Open `index.html` in any browser to experience the **CaTML Playground**: - Real-time syntax compiler - Split view: Live preview & compiled raw HTML - Pre-built templates: - *Welcome to CaTML* - *Interactive Bap Counter* - *Kitten Adoption Form* - *Sir Pounce-a-Lot Portfolio* - Built-in interactive feline vocabulary modal --- ## ๐Ÿงช Testing Run the automated test suite with Node.js: ```bash node test/test.js ``` --- ## ๐Ÿ“„ License MIT. Built with ๐Ÿพ purrs and catnip.