feat: convert web El source to native HTML template syntax
Replace all return "..." HTML string literals with native El templates —
removes all \" escapes, converts + interpolations to {expr}/{raw(expr)},
and replaces conditional string concatenation with {#if}/{#else}/{/if}.
No functional changes; output is identical.
This commit is contained in:
+17
-19
@@ -1,36 +1,34 @@
|
||||
// components/footer.el - Site footer.
|
||||
|
||||
fn footer() -> String {
|
||||
return "
|
||||
<footer id=\"footer\" aria-label=\"Footer\">
|
||||
<div class=\"container\">
|
||||
<div class=\"footer-inner\">
|
||||
return <footer id="footer" aria-label="Footer">
|
||||
<div class="container">
|
||||
<div class="footer-inner">
|
||||
|
||||
<a href=\"/\" class=\"footer-brand\" aria-label=\"Neuron home\" style=\"display:flex;flex-direction:column;align-items:center;\">
|
||||
<img src=\"/assets/brand/neuron-wordmark-on-light.png\" srcset=\"/assets/brand/neuron-wordmark-on-light@2x.png 2x\" alt=\"Neuron\" height=\"24\" style=\"display:block;margin-bottom:0.35rem;\">
|
||||
<p class=\"footer-brand-tagline\">Built Different.</p>
|
||||
<a href="/" class="footer-brand" aria-label="Neuron home" style="display:flex;flex-direction:column;align-items:center;">
|
||||
<img src="/assets/brand/neuron-wordmark-on-light.png" srcset="/assets/brand/neuron-wordmark-on-light@2x.png 2x" alt="Neuron" height="24" style="display:block;margin-bottom:0.35rem;">
|
||||
<p class="footer-brand-tagline">Built Different.</p>
|
||||
</a>
|
||||
|
||||
<div class=\"footer-center\">
|
||||
<div class=\"navy-line\"></div>
|
||||
<div class="footer-center">
|
||||
<div class="navy-line"></div>
|
||||
</div>
|
||||
|
||||
<div class=\"footer-right\">
|
||||
<p class=\"footer-domain\">neurontechnologies.ai</p>
|
||||
<nav class=\"footer-nav\" aria-label=\"Footer navigation\">
|
||||
<a href=\"/legal/terms\">Terms</a>
|
||||
<a href=\"/legal/enterprise-terms\">Enterprise Agreement</a>
|
||||
<a href=\"mailto:legal@neurontechnologies.ai\">Contact</a>
|
||||
<div class="footer-right">
|
||||
<p class="footer-domain">neurontechnologies.ai</p>
|
||||
<nav class="footer-nav" aria-label="Footer navigation">
|
||||
<a href="/legal/terms">Terms</a>
|
||||
<a href="/legal/enterprise-terms">Enterprise Agreement</a>
|
||||
<a href="mailto:legal@neurontechnologies.ai">Contact</a>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class=\"footer-bottom\">
|
||||
<p class=\"footer-copy\">© 2026 Neuron, LLC. All rights reserved.</p>
|
||||
<p class=\"footer-tagline-bottom\">Your memory. Your AI.</p>
|
||||
<div class="footer-bottom">
|
||||
<p class="footer-copy">© 2026 Neuron, LLC. All rights reserved.</p>
|
||||
<p class="footer-tagline-bottom">Your memory. Your AI.</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user