@ossph/temple-compiler
v0.0.12
Published
Compiles Temple markup language files to JavaScript and HTML.
Downloads
3
Readme
⛩️ 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-compiler
Basic 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 |