<< lib/website/SLWebsiteEmitter.sleela SLeeLa Standard Library Definition. Definition: Defines the SLeeLa standard-library type SLWebsiteEmitter used within the website library family. >> #sleela 2.5 material; < Unified SLeeLa standard-library front-end object. > < Family: website. Assembles signs under a design into a complete, > < self-contained HTML document (markup + an embedded style sheet). No external > < CSS/JS is required to view the result. This is the authoritative renderer. > < > < The style sheet is derived entirely from the design: CSS custom properties > < carry the palette and the energy dial selects flat color, soft gradients, or > < a bold animated gradient. All of this is String concatenation on OP_ADD plus > < integer-to-text; no new VM opcode is introduced. > class SLWebsiteEmitter { < ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- > << Eleven catalogued attributes with getter/setter pairs, so a GUI, loader, or catalog can read and (where appropriate) override this record. Values are faithful to the subject's real origin where publicly known. >> String metaVersion = "1.0.0"; int metaId = 10057; String metaAuthor = "Kiro Agent"; String metaDate = "2026-10-16"; String metaCopyright = "SLeeLa project"; String metaTrademark = "none"; String metaCorporation = "none"; < metaOrigin: National | | International | Galactic > String metaOrigin = "International"; String metaBirthDate = "2026-10-03"; < metaScienceRating: maturity/robustness on a 1..10 scale > int metaScienceRating = 9; < metaNationalSchedule: a real, citable instrument or "none" > String metaNationalSchedule = "none"; String getMetaVersion() { return metaVersion; } void setMetaVersion(String v) { metaVersion = v; } int getMetaId() { return metaId; } void setMetaId(int v) { metaId = v; } String getAuthor() { return metaAuthor; } void setAuthor(String v) { metaAuthor = v; } String getDate() { return metaDate; } void setDate(String v) { metaDate = v; } String getCopyright() { return metaCopyright; } void setCopyright(String v) { metaCopyright = v; } String getTrademark() { return metaTrademark; } void setTrademark(String v) { metaTrademark = v; } String getCorporation() { return metaCorporation; } void setCorporation(String v) { metaCorporation = v; } String getOrigin() { return metaOrigin; } void setOrigin(String v) { metaOrigin = v; } String getBirthDate() { return metaBirthDate; } void setBirthDate(String v) { metaBirthDate = v; } int getScienceRating() { return metaScienceRating; } void setScienceRating(int v) { metaScienceRating = v; } String getNationalSchedule() { return metaNationalSchedule; } void setNationalSchedule(String v) { metaNationalSchedule = v; } < Produce the "; return css; } < Render a single sign to HTML under the active design. > String renderSign(SLWebsiteSign s) { if (s.kind == 0) { return ""; } if (s.kind == 1) { return "

" + s.a + "

" + s.b + "

" + s.c + "
"; } if (s.kind == 2) { return "

" + s.a + "

" + s.b + "
"; } if (s.kind == 3) { return "

" + s.a + "

" + s.b + "
"; } if (s.kind == 4) { return "

" + s.a + "

" + s.b + "
"; } if (s.kind == 5) { return "
" + s.a + "
- " + s.b + "
"; } if (s.kind == 6) { return "

" + s.a + "

" + s.b + "
"; } if (s.kind == 7) { return "
" + s.a + "
"; } return ""; } < Wrap a design's style + a pre-rendered body into a full HTML document. > String document(String title, String style, String body) { String html = "\n\n\n"; html = html + "\n"; html = html + "\n"; html = html + "" + title + "\n"; html = html + style + "\n\n\n" + body + "\n\n\n"; return html; } String intToStr(int v) { return "" + v; } }