# kapid_html

> HTML file templating to mange common file dependency while creating simple static webpages

Latest version **1.0.2** (published 2020-04-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install kapid_html
pnpm add kapid_html
yarn add kapid_html
bun add kapid_html
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-04-28 |
| First published | 2019-08-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dipak |
| Maintainers | dipakchandranp |

## Links

- npm: https://www.npmjs.com/package/kapid_html
- Repository: https://github.com/dipakchandranp/node-simple-html-template
- Homepage: https://github.com/dipakchandranp/node-simple-html-template#readme
- Issues: https://github.com/dipakchandranp/node-simple-html-template/issues
- npm.io page: https://npm.io/package/kapid_html

## Dependencies (1)

- [pretty](https://npm.io/package/pretty.md) ^2.0.0

## Recent versions

- 1.0.2 (latest) — 2020-04-28
- 1.0.1 — 2019-08-26
- 1.0.0 — 2019-08-26

## README

# node-simple-html-template

HTML file templating to mange common file dependency while creating simple static webpages

### installation:

> yarn add kapid_html

> npm i kapid_html

### Configuration details and usage

Following is the static value of configuration used in the plugin:

- PAGE_ROOT = "src/templates/pages/";
- TEMPLATE_ROOT = "src/templates/";
- OUTPUT = "public";

### configuration in package.json script:

```
"scripts": {
  "build-html": "node ./node_modules/kapid_html",
}
```

### How it works

Sample src/templates/pages/home.html file:

```
  <!DOCTYPE html>
  <html lang="en" dir="ltr">
    <head>
      <meta charset="utf-8" />
      <title>Home</title>
    </head>
    <body>
      <div>Main content</div>
      {{include_html "common/footer.html"}}
    </body>
  </html>
```

Sample src/templates/common/footer.html file:

```
  <footer>
    <h5>Footer HTML</h5>
    <div>Main footer contnet</div>
  </footer>
```

After kapid_html build:

```
  <!DOCTYPE html>
  <html lang="en" dir="ltr">
    <head>
      <meta charset="utf-8" />
      <title>Home</title>
    </head>
    <body>
      <div>Main content</div>
      <footer>
        <h5>Footer HTML</h5>
        <div>Main footer contnet</div>
      </footer>
    </body>
  </html>
```

---
_Source: https://npm.io/package/kapid_html · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
