Options
All
  • Public
  • Public/Protected
  • All
Menu

Module \mmir-tooling\view

Index

Variables

Functions

Variables

Const _default

_default: { compile: typeof compile }

Type declaration

Const _default

_default: { addViewsToAppConfig: (views: ViewEntry[], ctrls: ImplementationBuildEntry[], appConfig: BuildAppConfig | WebpackAppConfig, directories: DirectoriesInfo, resources: ResourceConfig, _runtimeConfiguration: RuntimeConfiguration) => void; applyDefaultOptions: (options: ViewBuildOptions, viewList: ViewEntry[]) => ViewEntry[]; viewTemplatesFromDir: (dir: string, appRootDir: string, options?: ViewBuildOptions) => ViewBuildEntry[] }

Type declaration

Functions

compile

  • compile view defintion (eHTML) into an executable JS view

    Parameters

    • content: string

      the view definition (eHTML) as string

    • viewFile: string

      the path of the view file (for debugging/error information)

    • options: ViewCompilerOptions

      the ViewLoadOptions with property mapping (list of ViewOptions)

    • callback: CompilerCallback

      the callback when view compilation has been completed: callback(error | null, compiledView, map, meta)

    • _map: any
    • _meta: any

    Returns void

Generated using TypeDoc