# htmler

> assembling html string

Latest version **0.1.0** (published 2014-05-22) · BSD-2-Clause license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2014-05-22 |
| First published | 2014-03-31 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Bibig |
| Maintainers | bibig |
| Keywords | html |

## Links

- npm: https://www.npmjs.com/package/htmler
- Repository: https://github.com/bibig/node-htmler
- Issues: https://github.com/bibig/node-htmler/issues
- npm.io page: https://npm.io/package/htmler

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2014-05-22
- 0.0.5 — 2014-05-07
- 0.0.4 — 2014-05-05
- 0.0.3 — 2014-04-08
- 0.0.2 — 2014-03-31
- 0.0.1 — 2014-03-31

## README

# Htmler

+ an easy way to render html string.
+ although sorts of template engines are popular, but sometimes we also need the tranditional way to render html.

## Install
 npm install htmler

## Version
  0.0.1

## Usage
  ```javascript
    var htmler = require('htmler');
    var img = htmler.img;
    var nav = htmler.tag('nav');
    
    
    img({src: 'http://www.example.com/xxx.png'});
    // -> <img src="http://www.example.com/xxx.png">
    
    var div = htmler.div;
    div({id: 'myDiv', class: 'myClass'}).html('hello world');
    // -> <div id="myDiv" class="myClass">hello world</div>
  
    var ul = htmler.ul;
    var li = htmler.li;

    ul('myStyle').html(
      li().html('hello'),
      li('active').html('htmler')
    );
    // -> <ul class="myStyle"><li>hello</li><li class="active">htmler</li></ul>

    nav('myNav').html('hello');
    // -> <nav class="myNav">haha</nav>
  
  ```

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