Foundry.PageMetadata (Foundry v0.4.0)

Copy Markdown View Source

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()]