Teepo / HTMLImporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTMLImporter

Getting started

npm install
npm run start

Run your favorite browser and go to http://localhost:3000

Example

<template rel="hello.html"></template>
document.addEventListener('DOMContentLoaded', function() {

    var templates = document.querySelectorAll('template');

    (new Importer).run(templates);
});

All tag will be replace by theirs "rel" content.

About


Languages

Language:HTML 54.6%Language:CSS 26.5%Language:JavaScript 18.9%