0.1.1 • Published 1 year ago

astro-carton v0.1.1

Weekly downloads
-
License
Public Domain
Repository
github
Last release
1 year ago

This library allows you to render astro components as a string in any project.

Installation

npm install astro-carton

Usage

// example.mjs
import { AstroCarton } from 'astro-carton/runtime'
import Component from './Component.astro'

const carton = new AstroCarton()
console.log(await carton.renderToString(Component))
node --import astro-carton ./example.mjs
0.1.1

1 year ago

0.1.0

2 years ago

0.0.1

2 years ago