@adobe/htlengine
Javascript Based HTL (Sightly) parser
Last updated 2 days ago by adobe-admin .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/htlengine 
SYNC missed versions from official npm registry.

HTL Engine for Javascript

This engine can parse HTL scripts and builds a command stream. The command stream can either be intepreted or used to generate code. This project provides a Javascript (ES6) generator and runtime which allows to execute the scripts and use-classes.

Status

codecov CircleCI GitHub license GitHub issues

LGTM Code Quality Grade: JavaScript

Install

npm install @adobe/htlengine

Build

npm install

run

currently not very cool. just passes the given file into the HTML parser and outputs the tree again.

node src/cli.js test/simple2.html

Webpack

Compile the HTL templates wth webpack using the htl-loader

API

You can also use the API directly:

const { Compiler } = require('@adobe/htlengine');

const compiler = new Compiler()
      .withDirectory('')
      .includeRuntime(true)
      .withRuntimeGlobalName('it');

const js = await compiler.compileToString(code);
// the result can be saved as a file or eval'd

examples

test

The tests are more comprehensive. They validate if the the HTL expressions are parsed and re-created using the generated parse tree.

npm test

rebuild antlr4 generated source

npm run build

prerequisites

brew install antlr

Current Tags

  • 6.2.5                                ...           latest (2 days ago)
  • 2.1.2-pre.2                                ...           next (2 years ago)

164 Versions

  • 6.2.5                                ...           2 days ago
  • 6.2.4                                ...           6 days ago
  • 6.2.3                                ...           15 days ago
  • 6.2.2                                ...           19 days ago
  • 6.2.1                                ...           a month ago
  • 6.2.0                                ...           3 months ago
  • 6.1.0                                ...           4 months ago
  • 6.0.0                                ...           4 months ago
  • 5.1.0                                ...           4 months ago
  • 5.0.0                                ...           4 months ago
  • 4.6.2                                ...           4 months ago
  • 4.6.1                                ...           5 months ago
  • 4.6.0                                ...           5 months ago
  • 4.5.2                                ...           5 months ago
  • 4.5.1                                ...           5 months ago
  • 4.5.0                                ...           6 months ago
  • 4.4.1                                ...           6 months ago
  • 4.4.0                                ...           7 months ago
  • 4.3.1                                ...           8 months ago
  • 4.3.0                                ...           9 months ago
  • 4.2.0                                ...           9 months ago
  • 4.1.1                                ...           9 months ago
  • 4.1.0                                ...           9 months ago
  • 4.0.3                                ...           9 months ago
  • 4.0.2                                ...           9 months ago
  • 4.0.1                                ...           9 months ago
  • 4.0.0                                ...           10 months ago
  • 3.4.0                                ...           10 months ago
  • 3.3.1                                ...           10 months ago
  • 3.3.0                                ...           a year ago
  • 3.2.8                                ...           a year ago
  • 3.2.7                                ...           a year ago
  • 3.2.6                                ...           a year ago
  • 3.2.5                                ...           a year ago
  • 3.2.4                                ...           a year ago
  • 3.2.3                                ...           a year ago
  • 3.2.2                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.3.2                                ...           a year ago
  • 2.3.1                                ...           2 years ago
  • 2.3.0                                ...           2 years ago
  • 2.2.2                                ...           2 years ago
  • 2.2.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.7                                ...           2 years ago
  • 2.1.6                                ...           2 years ago
  • 2.1.5                                ...           2 years ago
  • 2.1.4                                ...           2 years ago
  • 2.1.3                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.2-pre.2                                ...           2 years ago
  • 2.1.2-pre.1                                ...           2 years ago
  • 2.1.2-pre.0                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.1-pre.3                                ...           2 years ago
  • 2.1.1-pre.2                                ...           2 years ago
  • 2.1.1-pre.1                                ...           2 years ago
  • 2.1.1-pre.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.1-pre.2                                ...           2 years ago
  • 2.0.1-pre.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.0.1-pre.0                                ...           2 years ago
  • 1.0.6-pre.0                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.5-pre.1                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.5-pre.0                                ...           2 years ago
  • 1.0.4-pre.7                                ...           2 years ago
  • 1.0.4-pre.6                                ...           2 years ago
  • 1.0.4-pre.5                                ...           2 years ago
  • 1.0.4-pre.4                                ...           2 years ago
  • 1.0.4-pre.3                                ...           2 years ago
  • 1.0.4-pre.2                                ...           2 years ago
  • 1.0.4-pre.1                                ...           2 years ago
  • 1.0.4-pre.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.3-pre.0                                ...           2 years ago
  • 1.0.2-SNAPSHOT.70                                ...           2 years ago
  • 1.0.2-SNAPSHOT.68                                ...           2 years ago
  • 1.0.2-SNAPSHOT.66                                ...           2 years ago
  • 1.0.2-SNAPSHOT.64                                ...           2 years ago
  • 1.0.2-SNAPSHOT.58                                ...           2 years ago
  • 1.0.2-SNAPSHOT.56                                ...           2 years ago
  • 1.0.2-SNAPSHOT.54                                ...           2 years ago
  • 1.0.2-SNAPSHOT.52                                ...           2 years ago
  • 1.0.2-SNAPSHOT.50                                ...           2 years ago
  • 1.0.2-SNAPSHOT.48                                ...           2 years ago
  • 1.0.2-SNAPSHOT.46                                ...           2 years ago
  • 1.0.2-SNAPSHOT.44                                ...           2 years ago
  • 1.0.2-SNAPSHOT.42                                ...           2 years ago
  • 1.0.2-SNAPSHOT.39                                ...           2 years ago
  • 1.0.2-SNAPSHOT.37                                ...           2 years ago
  • 1.0.2-SNAPSHOT.35                                ...           2 years ago
  • 1.0.2-SNAPSHOT.33                                ...           2 years ago
  • 1.0.2-SNAPSHOT.31                                ...           2 years ago
  • 1.0.2-SNAPSHOT.29                                ...           2 years ago
  • 1.0.2-SNAPSHOT.26                                ...           2 years ago
  • 1.0.2-SNAPSHOT.23                                ...           2 years ago
  • 1.0.2-SNAPSHOT.24                                ...           2 years ago
  • 1.0.2-SNAPSHOT.20                                ...           2 years ago
  • 1.0.1-SNAPSHOT.18                                ...           2 years ago
  • 1.0.1-SNAPSHOT.14                                ...           2 years ago
  • 1.0.1-SNAPSHOT.12                                ...           2 years ago
  • 1.0.1-SNAPSHOT.10                                ...           2 years ago
  • 1.0.0-SNAPSHOT.4363                                ...           2 years ago
  • 1.0.0-SNAPSHOT.4355                                ...           2 years ago
  • 1.0.0-SNAPSHOT.4174                                ...           2 years ago
  • 1.0.1-SNAPSHOT.8                                ...           2 years ago
  • 1.0.1-SNAPSHOT.6                                ...           2 years ago
  • 1.0.0-SNAPSHOT.4008                                ...           2 years ago
  • 1.0.1-SNAPSHOT.4                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3990                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3985                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3940                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3929                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3914                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3907                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3900                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3886                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3874                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3867                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3854                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3837                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3834                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3817                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3812                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3796                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3788                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3779                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3767                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3754                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3748                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3737                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3729                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3719                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3710                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3698                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3691                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3681                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3674                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3662                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3654                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3643                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3633                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3624                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3617                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3606                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3599                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3588                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3581                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3570                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3246                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3075                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3068                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3060                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3052                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3042                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3037                                ...           2 years ago
  • 1.0.0-SNAPSHOT.3026                                ...           2 years ago

Copyright 2014 - 2017 © taobao.org |