Skip to content

How-to Guides

Task-oriented guides for specific features. Each guide focuses on solving a particular problem.

  • Routing


    Define routes, extract path parameters, name routes, and reverse URLs.

  • Input Handling


    Collect user input with prompts and sensitive data handling.

  • Responses


    Return different response types: success, input, redirect, and build links.

  • Templates


    Use Jinja2 templates for cleaner Gemtext generation.

  • Middleware


    Create and use middleware for logging, timing, and rate limiting.

  • Background Tasks


    Run periodic tasks on intervals or cron schedules.

  • Authentication


    Implement certificate-based authentication and authorization.

  • Static Files


    Serve static files, images, and directories from your capsule.

  • CGI Scripts


    Execute external CGI scripts and programs.

  • Error Handling


    Handle errors and return appropriate status codes.

  • Testing


    Write tests for your Xitzin applications.

  • Deployment


    Deploy your capsule to production.

  • Virtual Hosting


    Host multiple applications under different hostnames on a single server.