MCPcopy
hub / github.com/reflex-dev/reflex / default_page_plugins

Function default_page_plugins

reflex/compiler/plugins/builtin.py:600–612  ·  view source on GitHub ↗

Return the default compiler plugin ordering for page compilation.

(
    *,
    style: ComponentStyle | None = None,
    plugins: Sequence[Plugin] = (),
)

Source from the content-addressed store, hash-verified

598
599
600def default_page_plugins(
601 *,
602 style: ComponentStyle | None = None,
603 plugins: Sequence[Plugin] = (),
604) -> tuple[Plugin, ...]:
605 """Return the default compiler plugin ordering for page compilation."""
606 from reflex.compiler.plugins.memoize import MemoizeStatefulPlugin
607
608 chain: list[Plugin] = [*plugins, DefaultPagePlugin()]
609 if style is not None:
610 chain.append(ApplyStylePlugin(style=style))
611 chain.extend((DefaultCollectorPlugin(), MemoizeStatefulPlugin()))
612 return tuple(chain)
613
614
615__all__ = [

Calls 4

DefaultPagePluginClass · 0.85
ApplyStylePluginClass · 0.85