# cirru-mustache

> convert Cirru to Mustache and HTML

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

## Install

```sh
npm install cirru-mustache
pnpm add cirru-mustache
yarn add cirru-mustache
bun add cirru-mustache
```

## 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-02-19 |
| First published | 2013-12-10 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jiyinyiyong |
| Maintainers | jiyinyiyong |
| Keywords | cirru, mustache, html |

## Links

- npm: https://www.npmjs.com/package/cirru-mustache
- Repository: git@github.com:jiyinyiyong/cirru-mustache
- Homepage: https://github.com/jiyinyiyong/cirru-mustache
- Issues: https://github.com/jiyinyiyong/cirru-mustache/issues
- npm.io page: https://npm.io/package/cirru-mustache

## Dependencies (1)

- [cirru-parser](https://npm.io/package/cirru-parser.md) ~0.7.1

## 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-02-19
- 0.0.6 — 2013-12-10

## README

Convert Cirru to Mustache
------

Converts:

```cirru
html
  head
    title demo
    meta
      :charset utf-8
  body
    div (:class "btn btn-primary")
      :id name
      = content of this
    div.demo
      #scope
        = such a scope
      ^not-scope
        = this is not in scope
      >partial
      ! comment

    div.demo
      "#name :name"
        = s
      "^name :name"
        = s
    div#id-of-it $ = content
```

to Mustache:

```mustache
<html>
  <head>
    <title>
      demo
    </title>
    <meta charset="utf-8" />
  </head>
  <body>
    <div id="name" class="btn btn-primary">
      content of this
    </div>
    <div class="demo">
      {{#scope}}
        such a scope
      {{/scope}}
      {{^ot-scope}}
        this is not in scope
      {{/}}
      {{> partial}}
    </div>
    <div class="demo">
      {{#name :name}}
        s
      {{/name}}
      {{^ame}}
        s
      {{/}}
    </div>
    <div id="id-of-it">
      content
    </div>
  </body>
</html>
```

### Usage

In CommonJS

```
npm install --save cirru-mustache
```

* render:

```coffee
tree = cirru.parse code
html = require("cirru-mustache").render tree
```

### Live demo

Link http://repo.tiye,me/cirru-mustache/

### License

BSD

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