diff --git a/app/views/Home/index.asp b/app/views/Home/index.asp index 2874882..24e0562 100644 --- a/app/views/Home/index.asp +++ b/app/views/Home/index.asp @@ -1,85 +1,8 @@ - - -
- Your lightweight, opinionated MVC-style framework for Classic ASP. -
-
- This Home.Index view is using the shared
- Header.asp and Footer.asp layout files.
-
- Start by wiring up your controllers, repositories, and views — this page is just a - friendly placeholder so you know everything is hooked up correctly. -
-app/Views/Home.Index.asp
- Shared/Header.asp & Shared/Footer.asp
- /Home/Index or / via the dispatcher.
-
- Use your generateController.vbs script to scaffold new controllers.
-
cscript //nologo Scripts\generateController.vbs ^
- Home "Index"
- - Generate strongly-typed POBOs and repositories from your Access/SQL schema. -
-cscript //nologo Scripts\GenerateRepo.vbs ^
- /table:Users /pk:UserId
- /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 %>
-
+
- - - - - - -