import { Type } from "../deps.ts" ; import { ViewCatalog } from "../view-catalog.ts" ; /**
 * Decorator that allows a view to be provided inline.
 */ export function InlineView ( template ) { return function ( target , propertyKey ? ) { if ( propertyKey ) { ViewCatalog . registerActionView ( target . constructor as Type , propertyKey . toString ( ) , { template } ) ; } else { ViewCatalog . registerControllerView ( target as Type , { template } ) ; } } ; }