Foundry.PageMetadata (foundry v0.1.1)

Copy Markdown

Shared page metadata inference for LiveView modules.

This keeps route, subtype, feature flag, and action inference consistent between Foundry.Context.Introspector and SparkMeta analyzers.

Summary

Types

route_info()

@type route_info() :: %{path: String.t(), dynamic: boolean()} | nil

Functions

analyze(module, route_info \\ nil)

@spec analyze(module(), route_info()) :: map()

calls_actions(module)

@spec calls_actions(module()) :: [map()]