TemplateEngine with a guarded static file server; you will render dynamic HTML and deliver assets from the public directory.
Render a view
Callrequest.view() with a dot-separated template name and optional data. The engine loads templates from lib/src/http/views, where dashboard.index maps to dashboard/index.html.
lib/src/http/routes/web.dart
{{ value }} interpolation, raw {!! value !!} interpolation, @extends, @section, @yield, @include, @foreach, @if, @else, and @csrf.
lib/src/http/views/profile.html
Serve static files
ResolveStaticFilesServer from the application and call tryServe() before kernel dispatch. The default root is lib/src/http/public.
bin/server.dart
Last-Modified, If-Modified-Since, byte ranges, HEAD, and path sanitization. It serves only GET and HEAD requests and returns false when no asset matches.