Options
All
  • Public
  • Public/Protected
  • All
Menu

Module \mmir-tooling\src\view

Index

Type aliases

ViewDirInfo

ViewDirInfo: { ctrlName: string; dir: string; isLayout: boolean }

Type declaration

  • ctrlName: string
  • dir: string
  • isLayout: boolean

Variables

Controller

Controller: typeof ControllerClass = (mmir as MmirModule).require('mmirf/controller')

VirtualModulePlugin

VirtualModulePlugin: any

Const log

log: any = logUtils.log

regExprFileExt

regExprFileExt: RegExp = /\.ehtml$/i

Const warn

warn: any = logUtils.warn

Const warn

warn: any = logUtils.warn

Functions

addCtrlStub

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

containsCtrl

getCtrl

  • getCtrl(viewInfo: ViewEntry): ControllerClass

initVirtualModulePlugin

  • initVirtualModulePlugin(): boolean

isPartialView

  • isPartialView(name: string): boolean

readDir

readSubDir

toAliasId

toAliasPath

Generated using TypeDoc