DOM Directives (data-rbow-*)
Bit of Web avoids esoteric template syntaxes. Templates are 100% valid HTML5 documents where logic, structure, and composition are driven by declarative data-rbow-* DOM attributes.
data-rbow-include
— Partial Template Inclusion
Injects the content of a target file inside the host tag. Supports automated language shadowing: requesting content.html on an English route automatically evaluates content.en.html first.
<header data-rbow-include="components/nav.html"></header> <main> <div data-rbow-include="content.html"></div> </main>
data-rbow-inject
— Full Host Tag Replacement
Replaces the host element in its entirety with the generated content. Commonly used for SEO metadata, Open Graph headers, JSON-LD Schema.org scripts, and dynamic components.
<script data-rbow-inject="components/seo.php"></script>
data-rbow-loop
— Array & Collection Iteration
Repeats the host element for each item in an array or collection with scoped item context and built-in metadata flags (@loop.first, @loop.last, @loop.index).
<div data-rbow-loop="services" class="card"> <h3></h3> <span> min | </span> </div>
— Dot-Notation Variable Substitution
Interpolates nested configuration values, dictionary translations (Home), and active route URLs (/book-demo) cleanly within templates.