Guides

Comprehensive guides to help you master Squirrel web development. From basic concepts to advanced patterns.

Routing
Beginner
Learn how to define routes, handle path parameters, and organize your application's URL structure.

Topics Covered:

Path ParametersRoute GroupsWildcardsHTTP Methods
Read Guide →
Middleware
Intermediate
Understand how to use middleware for cross-cutting concerns like authentication, logging, and CORS.

Topics Covered:

Custom MiddlewareBuilt-in MiddlewareMiddleware ChainError Handling
Read Guide →
Request Handling
Beginner
Master request processing, including parsing forms, handling JSON, and working with headers.

Topics Covered:

Form DataJSON ParsingFile UploadsHeaders
Read Guide →
Response Management
Beginner
Learn how to send different types of responses, set headers, and handle content negotiation.

Topics Covered:

JSON ResponsesTemplatesStatus CodesHeaders
Read Guide →
Error Handling
Intermediate
Implement robust error handling strategies and create user-friendly error pages.

Topics Covered:

Custom ErrorsError MiddlewareRecoveryLogging
Read Guide →
Static Files
Beginner
Serve static assets like CSS, JavaScript, and images efficiently with Squirrel.

Topics Covered:

File ServerAsset PipelineCachingCompression
Read Guide →
Learning Path
Recommended order for learning Squirrel concepts
1

Start with Routing

Learn the basics of defining routes and handling requests

2

Request & Response Handling

Master processing requests and sending responses

3

Add Middleware

Implement cross-cutting concerns like authentication and logging

4

Error Handling & Static Files

Build robust applications with proper error handling and asset serving