ASP Classic blog framework - BrainOrdure
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

46 lines
1.0KB

  1. <%
  2. Class HomeController_Class
  3. Private m_useLayout
  4. Private m_title
  5. Private Sub Class_Initialize()
  6. m_useLayout = True
  7. m_title = "Home"
  8. End Sub
  9. Public Property Get useLayout
  10. useLayout = m_useLayout
  11. End Property
  12. Public Property Let useLayout(v)
  13. m_useLayout = v
  14. End Property
  15. Public Property Get Title
  16. Title = m_title
  17. End Property
  18. Public Property Let Title(v)
  19. m_title = v
  20. End Property
  21. Public Sub index()
  22. Dim posts, categories
  23. Set posts = PostsRepository().FindAllWhere("IsPublished = 1", "PublishedDate DESC", 0, 5)
  24. Set categories = CategoriesRepository().Find(Empty, "Name")
  25. %>
  26. <!--#include file="../views/Home/index.asp" -->
  27. <%
  28. End Sub
  29. End Class
  30. Dim HomeController_Class__Singleton
  31. Function HomeController()
  32. If IsEmpty(HomeController_Class__Singleton) Then
  33. Set HomeController_Class__Singleton = New HomeController_Class
  34. End If
  35. Set HomeController = HomeController_Class__Singleton
  36. End Function
  37. %>

Powered by TurnKey Linux.