# Renderer Service

Module
import { Renderer } from "@tsed/cli-core"
Source/packages/cli-core/src/services/Renderer.ts

# Overview

abstract class Renderer {
    templateDir: string;
    rootDir: string;
    fs: CliFs;
    render(path: string, data: any, options?: RenderOptions): Promise<void>;
    renderAll(paths: string[], data: any, options?: RenderOptions): Promise<Observable<unknown>>;
    write(content: string, options: any): Promise<void>;
    templateExists(path: string, options?: RenderOptions): boolean;
    scan(pattern: string[], options?: any): Promise<string[]>;
    relativeFrom(path: string): string;
    protected mapOptions(path: string, options: RenderOptions): {
        output: string;
        templateDir: string;
        rootDir: string;
    };
}

# Members

templateDir: string

rootDir: string

fs: CliFs

render(path: string, data: any, options?: RenderOptions): Promise<void>

renderAll(paths: string[], data: any, options?: RenderOptions): Promise<Observable<unknown>>

write(content: string, options: any): Promise<void>

templateExists(path: string, options?: RenderOptions): boolean

scan(pattern: string[], options?: any): Promise<string[]>

relativeFrom(path: string): string

protected mapOptions(path: string, options: RenderOptions): {
     output: string;
     templateDir: string;
     rootDir: string;
 };