/triskel

Primary LanguageJavaScriptMIT LicenseMIT

@triskel

Documentation

ᴋɪʟᴛ ᴊs Node.js CI Build Status codecov dependencies free GitHub license

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 minzip-con-text Provides tools for eval and interpolate text and also pipe evaluated expressions across shared filters
@triskel/parser minzip-parser Parses HTML into @triskelAST
@triskel/loader minzip-loader
@triskel/parser
Parses and load HTML as stringified @triskelAST for webpack and rollup (@triskel/loader/rollup)
@triskel/app minzip-app
@triskel/con-text
Renders @triskelAST into the DOM
@triskel/stringify minzip-stringify Serializes @triskelAST into a String
@triskel/tinyhtml minzip-tinyhtml
@triskel/parser
@triskel/stringify
Parses into @triskelAST and serializes back minifying the resulting HTML
package size / dependencies description
@triskel/template minzip-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',
}