run-what 0.94.1

HTML-first web framework powered by Rust. No JavaScript frameworks, no build steps—just HTML.
1
2
3
4
5
6
7
8
<what>
props = "label, value, color"
defaults.color = "indigo"
</what>
<div style="background: #fff; border: 1px solid #e5e7eb; border-left: 3px solid; border-left-color: <if color == green>#22c55e</if><if color == red>#ef4444</if><if color == indigo>#6366f1</if><if color == amber>#f59e0b</if>; border-radius: 0.5rem; padding: 1rem;">
  <div style="font-size: 1.5rem; font-weight: 700; color: #111827;">#value#</div>
  <div style="font-size: 0.8rem; color: #6b7280; margin-top: 0.25rem;">#label#</div>
</div>