How Smartest builds pages

From The Smartest Wiki
Jump to: navigation, search
  1. Quince Controller pass-through to CmsFrontEnd application
  2. CmsFrontEnd application looks up hostname to identify site
  3. If there is a request string beyond '/', CmsFrontEnd uses SmartestRequestUrlHelper class to look up requested URL - otherwise already-identified site's homepage is retrieved.
  4. CmsFrontEnd application's private renderPage() method takes the identified page and passes it to a new SmartestWebPagePreparationHelper object.
  5. SmartestWebPagePreparationHelper object returns the HTML of the page via its fetch() method. This HTML is either from the cache (if the page is cached), or generated on the fly. This is handled by the SmartestWebPagePreparationHelper class.