#sleela 2.1 // site.sleela -- top level of the Website Generator. Composes a complete demo // site from a Design and an ordered list of Signs, then emits a single // self-contained HTML document. This is the entry point a CLI or the JavaFX // GUI drives: pick a design, add signs, emit. // // SLeeLa decides everything about the output here; a front end only chooses the // design preset and the sign content. class Site { void main() { Design design = new Design(); Signs signs = new Signs(); Emitter emitter = new Emitter(); // 1. Choose a design. "neon" is the loud, high-energy preset -- exactly // the kind of exciting site this generator is meant to produce. Swap // to "aurora", "editorial", or "brutalist" for a different feel with // the identical sign list below. Design.DesignModel d = design.preset("neon"); // 2. Compose the page as an ordered list of signs. Each sign is pure // content; the design supplies the look. string body = ""; body = body + emitter.renderSign( signs.nav("Lumen", "Features Pricing Contact"), signs); body = body + emitter.renderSign( signs.hero("Launch something unforgettable", "A website generated from pure design intent and semantic signs \u2014 no templates, no page builders.", "Start building"), signs); // Feature grid: the sign's body slot carries the rendered cards. In a // real run the generator fills these from structured items; here we // show the shape of the output. string cards = ""; cards = cards + "
Describe the look once; every page obeys it.
Pages are semantic blocks, not markup soup.
Output is a single self-contained document.