UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

16 lines (15 loc) • 525 B
import { createRenderInstruction } from "./instruction.js"; const TEMPLATE_ENTER = Object.freeze(createRenderInstruction({ type: "template-enter" })); const TEMPLATE_EXIT = Object.freeze(createRenderInstruction({ type: "template-exit" })); /** * Emitted by the compiler when entering an HTML `<template>` element. */ export function templateEnter(_result) { return TEMPLATE_ENTER; } /** * Emitted by the compiler when exiting an HTML `<template>` element. */ export function templateExit(_result) { return TEMPLATE_EXIT; }