0.0.12 • Published 2 years ago
@ossph/temple-compiler v0.0.12
⛩️ Temple Compiler
This package is designed for Temple, the reactive web component template engine. See docs for more information.
Compiles Temple markup language files to JavaScript and HTML.
Install
$ npm -i @ossph/temple-compilerBasic Usage
import { TempleCompiler } from '@ossph/temple-compiler';
const compiler = new TempleCompiler('/page.html', {...options...});
console.log(compiler.sourceCode);Compiler Options
| Name | Description |
|---|---|
| fs | File system where temple files located |
| cwd | The current working directory |
| brand | The web component prefix |
| buildFolder | Where to put cached files |
| tsconfig | Location of your tsconfig.json file |