MobAsh.Generator (mob_ash v0.1.0)

Copy Markdown View Source

Spec-v2 screens generator: runs at BUILD time inside the host project (under mob_dev's host-config audit) and emits three route entries per Ash resource, each pointing at a shared parameterized screen with the resource module as route-bound :params (delivered to mount/3 by core navigation).

Summary

Functions

The three route entries for one resource (pure; public for tests).

Emits [%{module, default_route, params}] for every resource of every configured domain.

Functions

entries(resource)

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

The three route entries for one resource (pure; public for tests).

generate()

@spec generate() :: [map()]

Emits [%{module, default_route, params}] for every resource of every configured domain.