@triskel
Documentation
Installation
npm install -D @triskel/app
import HTML from '@triskel/app'
import layout_html from './layout.html'
HTML.render(document.body, layout_html, {
data: {
// ...
},
})
packages included
package |
size / dependencies |
description |
@triskel/con-text |
|
Provides tools for eval and interpolate text and also pipe evaluated expressions across shared filters |
@triskel/parser |
|
Parses HTML into @triskelAST |
@triskel/loader |
@triskel/parser |
Parses and load HTML as stringified @triskelAST for webpack and rollup (@triskel/loader/rollup ) |
@triskel/app |
@triskel/con-text |
Renders @triskelAST into the DOM |
@triskel/stringify |
|
Serializes @triskelAST into a String |
@triskel/tinyhtml |
@triskel/parser
@triskel/stringify |
Parses into @triskelAST and serializes back minifying the resulting HTML |
package |
size / dependencies |
description |
@triskel/template |
@triskel/con-text |
This is a regular template engine to interpolate and render Strings |
@triskelAST
HTML |
@triskelAST |
<h1>Title 1</h1> |
{ $: 'h1', _: 'Title 1', } |