pesde primiti_ve / luau_html

page

these are used to serve content to the user.

to create a page, use lib.body.page.new().

functions

page.new()

  • this creates a new page object.

page
(headers)

  • you can create a headers object using lib.response.headers.new().
  • this returns the page object, which is useful for chaining.

page
(destination, item)

  • destination can either be "head" or "body".
  • if destination is "head", then item should be from the lib.head category.
  • otherwise, if destination is "body", then item should be from the lib.body category.
  • this returns the page object, which is useful for chaining.

page
(port)

  • port is an optional number. it defaults to 8080.
  • this returns the page object, which is useful for chaining.