---
url: /api/engines/types/components/class-hamlet-engine.md
description: api documentation of HamletEngine from @tsed/engines
---

## Usage

```typescript
import { HamletEngine } from "@tsed/engines/src/components/HamletEngine";
```

> See [/packages/engines/src/components/HamletEngine.ts](https://github.com/tsedio/tsed/blob/v8.38.4/packages/engines/src/components/HamletEngine.ts#L0-L0).

## Overview

```ts
class HamletEngine extends Engine {
    protected $compile(template: string, options: any): (options: any) => Promise<any>;
}
```

## protected $compile

```ts
protected $compile(template: string, options: any): (options: any) => Promise<any>;
```
