PhoenixKit.Modules.Legal.PageType (phoenix_kit v1.7.69)

Copy Markdown View Source

Struct representing a type of legal page that can be generated.

Fields

  • slug - URL-safe identifier (e.g., "privacy-policy")
  • title - Human-readable page title (e.g., "Privacy Policy")
  • template - EEx template filename for generation
  • description - Brief description of the page's purpose

Summary

Functions

Converts a plain map to a %PageType{} struct.

Types

t()

@type t() :: %PhoenixKit.Modules.Legal.PageType{
  description: String.t() | nil,
  slug: String.t(),
  template: String.t(),
  title: String.t()
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Converts a plain map to a %PageType{} struct.