Prism
Prism is Almasix’s view engine — a templating system for Python with layouts, components, slots, and directives, compiled ahead of time for a thin render path.
Templates use the .prism.html extension and live under resources/views.
from almasix.prism import view
return view("welcome", {"name": "Ada"})@extends("layouts.app")
@section("content") <h1>Hello, {{ name }}</h1>@endsectionIn this section
Section titled “In this section”- Rendering Views —
view(), data, escaping - Layouts & Inheritance —
@extends,@section,@yield - Components & Slots —
<x-*>,@slot, attributes - Control Structures —
@if,@foreach,@python - Including Subviews —
@includeand friends - Stacks & Directives —
@push,@stack, custom directives