ble :: FilePath     -- ^ The root to where the HTML file should be saved.
            -> Lang         -- ^ The currently used language.
            -> PageConf     -- ^ More specific information of the current web page being created.
            -> Table        -- ^ The source table to use when creating the web page
            -> M ()         -- ^ ReaderT Config IO, from the generated HTML file.
renderTable root lang pc@PageConf{..} table =
    ask >>= lift . LT.writeFile fp . renderMarkup . tableBody lang pc table
  where
    fp = toFilePath root $ lookupLang lang pageUrl


-- =============================================================================
-- * Content
-- =============================================================================


{- | How to render the data of the selected 'Table' into HTML using WebOodi to
    lookup course names in different languages.
-}
tableBo
renderTable :: FilePath     -- ^ The root to where the HTML file should be saved.
            -> Lang         -- ^ The currently used language.
            -> PageConf     -- ^ More specific information of the current web page being created.
            -> Table        -- ^ The source table to use when creating the web page
            -> M ()
renderTable root lang pc@PageConf{..} table =
    ask >>= lift . LT.writeFile fp . renderMarkup . tableBody lang pc table
  where
    fp = toFilePath root $ lookupLang lang pageUrl


-- =============================================================================
-- * Content
-- =============================================================================


{- | How to render the data of the selected 'Table' into HTML using WebOodi to
    lookup course names in different languages.
-}
renderTable root lang pc@PageConf{..} table =
    ask >>= lift . LT.writeFile fp . renderMarkup . tableBody lang pc table
  where
    fp = toFilePath root $ lookupLang lang pageUrl


-- =============================================================================
-- * Content
-- =============================================================================


{- | How to render the data of the selected 'Table' into HTML using WebOodi to
    lookup course names in different languages.
-}