The OpenD Programming Language

DispatcherMain

Boilerplate mixin for a main function that uses the dispatcher function.

You can send typeof(null) as the Presenter argument to use a generic one.

  1. mixintemplate DispatcherMain(Presenter, DispatcherArgs...)
  2. mixintemplate DispatcherMain(DispatcherArgs...)
    mixin template DispatcherMain (
    DispatcherArgs...
    ) if (
    !is(DispatcherArgs[0] : WebPresenter!T,
    T
    )
    ) {}

Meta

History

Added July 9, 2021