> ## Documentation Index
> Fetch the complete documentation index at: https://mint-tsdocs.saulo.engineer/llms.txt
> Use this file to discover all available pages before exploring further.

# LiquidTemplateManager class

> Template manager that uses LiquidJS with template merging

export const RefLink = ({target, children}) => {
  if (!target || typeof target !== 'string') {
    console.error('RefLink: Invalid target prop. Expected non-empty string.');
    return <span className="tsdocs-reflink broken-link" title="Invalid RefLink target" data-component="tsdocs-reflink">Invalid Link</span>;
  }
  const linkText = children || target;
  const path = typeof window !== 'undefined' && window.getRefPath ? window.getRefPath(target) : `./${target.split('.').filter(s => s.length > 0).join('/')}`;
  const isValid = typeof window !== 'undefined' && window.VALID_REFS && window.VALID_REFS.has(target);
  const className = !isValid ? 'tsdocs-reflink broken-link' : 'tsdocs-reflink';
  const title = !isValid ? `Broken API reference: ${target}` : undefined;
  return <a href={path} className={className} title={title} data-component="tsdocs-reflink">
      {linkText}
    </a>;
};

export const PageLink = ({target, children}) => {
  if (!target || typeof target !== 'string') {
    console.error('PageLink: Invalid target prop. Expected non-empty string.');
    return <span className="tsdocs-pagelink broken-link" title="Invalid PageLink target" data-component="tsdocs-pagelink">Invalid Link</span>;
  }
  const linkText = children || target;
  let path = target;
  if (!path.startsWith('/')) {
    path = `/${target}`;
  }
  const isValid = typeof window !== 'undefined' && window.VALID_PAGES && window.VALID_PAGES.has(target);
  const className = !isValid ? 'tsdocs-pagelink broken-link' : 'tsdocs-pagelink';
  const title = !isValid ? `Broken page link: ${target}` : undefined;
  return <a href={path} className={className} title={title} data-component="tsdocs-pagelink">
      {linkText}
    </a>;
};

# LiquidTemplateManager

## Summary

Template manager that uses LiquidJS with template merging

## Signature

```typescript theme={null}
export declare class LiquidTemplateManager 
```

## Constructors

### constructor

Constructs a new instance of the class

## Properties

### liquidEngine

**Modifiers**: readonly
**Type**:<RefLink target="mint-tsdocs.LiquidTemplateEngine">`get liquidEngine(): LiquidTemplateEngine;`</RefLink>
**Default**: \`\`

Get the Liquid engine for direct access

### mergedTemplateDir

**Modifiers**: readonly
**Type**:`get mergedTemplateDir(): string | undefined;`
**Default**: \`\`

Get the current merged template directory (for debugging)

### templateDataConverter

**Modifiers**: readonly
**Type**:<RefLink target="mint-tsdocs.TemplateDataConverter">`get templateDataConverter(): TemplateDataConverter;`</RefLink>
**Default**: \`\`

Get template data converter

## Methods

### cleanup

Cleanup resources

### clearCache

Clear all template caches

### getAvailableTemplates

Get available Liquid templates

### getTemplateMapping

Get template mapping for debugging/information purposes

### getTemplateStats

Get template usage statistics

### hasTemplate

Check if a Liquid template exists

### initialize

Initialize the template manager by creating merged template directory

### renderApiItem

Render an API item using the appropriate template

### renderLayout

Render a layout template

### renderTemplate

Render a template with user override support

## Events

*No events defined.*
