render
Render a component tree to an OutputDirectory.
import { render } from "@alloy-js/core";
function render(children: Children, options?: PrintTreeOptions): OutputDirectory;Parameters
Section titled “Parameters”| children | Children | |
| options | optional PrintTreeOptions |
Options
Section titled “Options”| insertFinalNewLine | optional boolean | If files should end with a final new line. |
| printWidth | optional number | The number of characters the printer will wrap on. Defaults to 100 characters. |
| tabWidth | optional number | The number of spaces to use for indentation. Defaults to 2 spaces. |
| useTabs | optional boolean | Whether to use tabs instead of spaces for indentation. Defaults to false. |