Skip to content

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.

app/http/controllers/welcome_controller.py
from almasix.prism import view
return view("welcome", {"name": "Ada"})
resources/views/welcome.prism.html
@extends("layouts.app")
@section("content")
<h1>Hello, {{ name }}</h1>
@endsection