You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
927B

  1. <% Option Explicit %>
  2. <!--#include file="../Core/IncludeAll.asp" -->
  3. <!--#include file="../Core/Bootstrap.asp" -->
  4. <%
  5. Set routeMatch = oRouter.Match(oApplication.Route)
  6. oDispatcher.Dispatch oApplication, routeMatch, controllerKey, oController
  7. If Err.Number <> 0 Then
  8. requestFailed = True
  9. errorDescription = Err.Description
  10. Err.Clear
  11. End If
  12. On Error Goto 0
  13. %>
  14. <%
  15. ' The matched controller key doubles as its view's filename (Home/Greet/
  16. ' NotFound), so the view is picked at runtime via DynamicIncludes.asp's
  17. ' Require instead of a static per-view #include chain - see CLAUDE.md.
  18. If requestFailed Then
  19. viewName = "Error"
  20. Else
  21. viewName = controllerKey
  22. End If
  23. DynamicInclude_CurrentPath = vbNullString
  24. Require "../Core/Views/" & viewName & ".asp"
  25. %>
  26. <%
  27. Set oDispatcher = Nothing
  28. Set oRouter = Nothing
  29. Set oController = Nothing
  30. Set oRequest = Nothing
  31. Set oClockService = Nothing
  32. Set oApplication = Nothing
  33. %>

Powered by TurnKey Linux.