# candyapple

> A sweet Express templating engine with a WASM core

Latest version **0.0.1-beta1** (published 2022-06-03) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities; high quality score.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-beta1 |
| Published | 2022-06-03 |
| First published | 2022-06-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 15.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | grotto |
| Keywords | WASM, Express, Templating Engine |

## Links

- npm: https://www.npmjs.com/package/candyapple
- Repository: https://github.com/tristanisham/candyapple
- Homepage: https://github.com/tristanisham/candyapple#readme
- Issues: https://github.com/tristanisham/candyapple/issues
- npm.io page: https://npm.io/package/candyapple

## Dependencies (1)

- [grotto](https://npm.io/package/grotto.md) ^0.0.2-alpha

## Recent versions

- 0.0.1-beta1 (latest) — 2022-06-03
- 0.0.1-beta — 2022-06-03
- 0.0.1-alpha — 2022-06-03

## README

<div align="center">

  <h1><code>Candy Apple</code></h1>

  <strong>A sweet <a href="https://www.npmjs.com/package/express">Express</a> templating engine with a WASM core.</strong>

  <!-- <p>
    <a href="https://travis-ci.org/rustwasm/wasm-pack-template"><img src="https://img.shields.io/travis/rustwasm/wasm-pack-template.svg?style=flat-square" alt="Build Status" /></a>
  </p>

  <h3>
    <a href="https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/index.html">Tutorial</a>
    <span> | </span>
    <a href="https://discordapp.com/channels/442252698964721669/443151097398296587">Chat</a>
  </h3>

  <sub>Built with 🦀🕸 by <a href="https://rustwasm.github.io/">The Rust and WebAssembly Working Group</a></sub>
  -->
 </div> 

## About

**Candy Apple** is a templating language and engine designed to be used with the [Express](https://www.npmjs.com/package/express) web framework. Candy Apple depends heavily on [Grotto](https://www.npmjs.com/package/grotto), a Rust WASM core for manipulating pure data functionally.

## 🚴 Usage
```sh 
npm i candyapple
```
Then add it as an Express view engine
```js
const {engine} = require('candyapple')
const express = require('express')
const app = express()
const port = 3030

app.engine('html', engine);
app.set('views', './examples')
app.set('view engine', 'html')

app.get('/', (req, res) => {
    try {
        res.render('index', { title: "Grotto!" })
    } catch (e) {
        console.error(e);
    }
})

app.get('/test', (req, res) => {
    res.send('hi')
})

app.listen(port, () => {
    console.log(`Example app listening on port ${port}`)
})
```

<!-- ### 🐑 Use `cargo generate` to Clone this Template -->

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