0a72fced28
El SDK CI - dev / build-and-test (pull_request) Failing after 13m17s
Establish lang/runtime/ as the ONE canonical el runtime (from the active runtime that carries hebb/emb persistence + the new WAL); repoint the el CI publish, engram build, elb default, and in-repo build scripts to it; delete the el-compiler/runtime + lang/releases/ forks; add scripts/check-single-runtime.sh drift guard. Fixes a live prod bug: the el CI published el-runtime-c/-h from the LAGGING el-compiler fork (0 hebb refs), so the shipped soul never persisted Hebbian edge weights — learned co-activation was wiped on every restart. Publishing from canonical ships the stranded 'learning that cannot outlive the process' fix. WAL storage engine + integrity fixes (DELETE->tombstone + store-layer protection, safe data-dir default) ride in behind ENGRAM_WAL (default off = byte-identical to today). Verified: engram elb per-module build clean, WAL gate 66/66, native smoke ok, drift-guard green.
41 lines
1.2 KiB
EmacsLisp
41 lines
1.2 KiB
EmacsLisp
// html-page.el — Example of native HTML template syntax in El.
|
|
//
|
|
// El HTML templates let you write HTML directly in expression position.
|
|
// Interpolated values are automatically HTML-escaped.
|
|
// Use raw(expr) to bypass escaping when you know the content is safe.
|
|
//
|
|
// Compile and run:
|
|
// ./dist/platform/elc examples/html-page.el > /tmp/html-page.c
|
|
// cc -std=c11 -I runtime -lcurl -lpthread \
|
|
// -o /tmp/html-page /tmp/html-page.c runtime/el_runtime.c
|
|
// /tmp/html-page
|
|
|
|
fn render_item(item: String) -> String {
|
|
return <li class="item">{item}</li>
|
|
}
|
|
|
|
fn render_page(title: String, items: [String]) -> String {
|
|
return <!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>{title}</title>
|
|
</head>
|
|
<body>
|
|
<h1>{title}</h1>
|
|
<ul>
|
|
{#each items as item}
|
|
<li class="item">{item}</li>
|
|
{/each}
|
|
</ul>
|
|
<p>Built with El HTML templates</p>
|
|
</body>
|
|
</html>
|
|
}
|
|
|
|
fn main() -> Void {
|
|
let items: [String] = ["Lexer", "Parser", "Codegen", "Runtime"]
|
|
let page: String = render_page("El Compiler Stages", items)
|
|
println(page)
|
|
}
|