This repository was archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Main Simplify.Web principles
Alexanderius edited this page Sep 12, 2016
·
8 revisions
Simplify.Web uses MVC pattern, so it has:
- Controllers (which processes HTTP request);
- Views (which generates page contents (not needed for small pages, because StaticTpl controller response or Tpl controller response can be used));
- Model - your entity classes.
It uses MVVM pattern:
- Controllers can get view model from HTTP request using
Controller<T>
AndAsyncController<T>
controllers base classes andModel
property in them; - Can set view model to HTTP response by ITemplate.Model extension method.
- Simplify.Web receives incoming HTTP request;
- Creates instances of controllers (which can handle current request) via IOC container;
- Executes controllers instances;
- Processes controllers responses;
- Builds page:
- Loads
Master.tpl
template; - Inserts data from
DataCollector
class to it; - Sets Simplify.Web variables;
- Sends generated page to client.
- If controller returns
Redirect
response orAjax
response then the 5 and 6 step will be skipped; - If current request is a request for static file and it is available for process (exists), then it will be processed by static files request handler (or by IIS, if it is hosted in Katana) and the 2 step and above will be skipped.
- Getting Started
- Main Simplify.Web principles
- Simplify.Web controllers
- Simplify.Web views
- Simplify.Web templates
- Simplify.Web configuration
- Templates variables
- Static content
- Template factory
- Data collector
- String table
- File reader
- Web context
- Environment
- Language manager
- Redirector
- HTML