From bdcd2e9b62a058f264ea8a5a62adf0e697af20fa Mon Sep 17 00:00:00 2001
From: Nano
- Your lightweight, opinionated MVC-style framework for Classic ASP.
-
- This
- Start by wiring up your controllers, repositories, and views — this page is just a
- friendly placeholder so you know everything is hooked up correctly.
-
- Use your
- Generate strongly-typed POBOs and repositories from your Access/SQL schema.
- Welcome to RouteKit Classic ASP
- Home.Index view is using the shared
- Header.asp and Footer.asp layout files.
- Quick info
-
-
- app/Views/Home.Index.asp
- Shared/Header.asp & Shared/Footer.asp
- /Home/Index or / via the dispatcher.
- Next step: Controllers
- generateController.vbs script to scaffold new controllers.
-
- cscript //nologo Scripts\generateController.vbs ^
- Home "Index"POBO & Repository
-
- cscript //nologo Scripts\GenerateRepo.vbs ^
- /table:Users /pk:UserIdWhere to put stuff
-
-
- /core/ – framework libs (DAL, routing, helpers)/app/Views/ – pages like this one/public/ – IIS root (Default.asp, web.config)
diff --git a/app/views/shared/header.asp b/app/views/shared/header.asp index 03fce57..22226d6 100644 --- a/app/views/shared/header.asp +++ b/app/views/shared/header.asp @@ -3,81 +3,68 @@ Response.Charset = "utf-8" Response.CodePage = 65001 -' Safe title resolution Dim pageTitle If IsObject(CurrentController) Then On Error Resume Next pageTitle = CurrentController.Title If Err.Number <> 0 Then - pageTitle = "RouteKit Classic ASP" + pageTitle = "BrainOrdure" Err.Clear End If On Error GoTo 0 End If -If Len(pageTitle) = 0 Then pageTitle = "Classic ASP Starter Template" +If Len(pageTitle) = 0 Then pageTitle = "BrainOrdure" + +Dim currentPath +currentPath = LCase(Request.ServerVariables("HTTP_X_ORIGINAL_URL")) +If InStr(currentPath, "?") > 0 Then currentPath = Left(currentPath, InStr(currentPath, "?") - 1) + +Function NavClass(ByVal prefix) + If Left(currentPath, Len(prefix)) = prefix Then + NavClass = "nav-link active" + Else + NavClass = "nav-link" + End If +End Function %>
-
+
- - - - - - -