-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Mike Christensen edited this page Aug 28, 2026
·
2 revisions
Imp (“In Memory Pages”) is a lightweight ASP.NET Core page framework. It maps request paths to .NET classes, creates page objects through dependency injection, binds query-string values to page properties, and renders either direct responses or XML-based templates embedded in the application assembly.
Embedded templates are compiled once and cached in memory. Imp is useful when you want class-based routing and a deliberately small rendering model without adopting MVC, Razor Pages, or a client-side framework.
- Getting started — install Imp and render a page.
- Architecture and request lifecycle — understand where Imp belongs in ASP.NET Core.
- Routing and page classes — map URLs and query strings to C#.
- Embedded templates and layouts — keep markup in cached assembly resources.
- Run the Todo sample for a complete application.
| Goal | Guide |
|---|---|
| Write HTML directly from a class | Pages and direct rendering |
| Compose layouts and page templates | Embedded templates and layouts |
| Insert runtime values and repeat items | Dynamic content, constants, and loops |
| Process forms safely | Forms, postbacks, and antiforgery |
| Inject application services | Dependency injection and lifetimes |
| Protect selected pages | Authentication and secure pages |
| Route database-backed permalinks | Routing and page classes |
| Rewrite static asset URLs | Static assets and CDN paths |
| Diagnose rendering failures | Troubleshooting |
-
KitchenPC.Impsupports the actively maintained .NET 8 and .NET 10 LTS releases. - The maintained Imp repository contains the library, unit tests, and sample application.
- The Todo sample targets .NET 10 and uses a direct project reference.
- Imp is available under the MIT License.
Imp is MIT licensed. See the source and Todo sample on GitHub.
Imp
Templates
Application integration
- Forms and antiforgery
- Dependency injection
- Authentication and secure pages
- Static assets and CDN paths
- Configuration reference
Help and reference