Navigator Prefabricating Marinates
Miss any of our Open RFC calls?Watch the recordings here! »

template-hint

1.0.3 • Public • Published

template-hint Build Status NPM

This project born from panic-overlay

A lightweight XML template hint.

Features

  • Displays xml errors in browsers

How It Looks

Template hint example

Installation

npm install template-hint
import templateHint from 'template-hint'; // should be the very first import in your app!

Using Without A Bundler

All-in-one browser bundle (batteries included), served from a CDN of your choice. Creates a global templateHint object.

<script src="https://unpkg.com/template-hint"></script>

Demos

Here's how you can find an example usage of template-hint with a webpack enviroment

git clone https://github.com/11joselu/template-hint.git
cd template-hint
npm install
Environment Run with Source folder
Webpack npm run demo-webpack-vanilla demo/webpack-vanilla
import templateHint from 'template-hint';
 
templateHint.validate(xml_template); // true or a toggle fn

TODO

  • Validate HTML template

Install

npm i template-hint

DownloadsWeekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

101 kB

Total Files

11

Last publish

Collaborators

  • avatar