FearlessStudios

GetPageContent

Server export to read one handbook page's content

GetPageContent

Returns only the renderable content for a matching page.

Usage

server.lua
local content = exports["FS-Handbook"]:GetPageContent("welcome")
if content and content.contentType == "markdown" then
  print(content.md)
end

Parameters

Prop

Type

Returns

  • table | nil: { contentType = "markdown", md = "..." }, { contentType = "rich", html = "..." }, { contentType = "embed", embed = {...} }, or nil.