|
- <% Option Explicit %>
- <!--#include file="../Core/IncludeAll.asp" -->
- <!--#include file="../Core/Bootstrap.asp" -->
- <%
- Set routeMatch = oRouter.Match(oApplication.Route)
- oDispatcher.Dispatch oApplication, routeMatch, controllerKey, oController
-
- If Err.Number <> 0 Then
- requestFailed = True
- errorDescription = Err.Description
- Err.Clear
- End If
-
- On Error Goto 0
- %>
- <%
- ' The matched controller key doubles as its view's filename (Home/Greet/
- ' NotFound), so the view is picked at runtime via DynamicIncludes.asp's
- ' Require instead of a static per-view #include chain - see CLAUDE.md.
- If requestFailed Then
- viewName = "Error"
- Else
- viewName = controllerKey
- End If
-
- DynamicInclude_CurrentPath = vbNullString
- Require "../Core/Views/" & viewName & ".asp"
- %>
- <%
- Set oDispatcher = Nothing
- Set oRouter = Nothing
- Set oController = Nothing
- Set oRequest = Nothing
- Set oClockService = Nothing
- Set oApplication = Nothing
- %>
|