hydrogen-renderer
The internal templating engine of [HydrogenJS](https://hydrogenjs.org) now available as a standalone package ❤️
Last updated a year ago by shailen .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hydrogen-renderer 
SYNC missed versions from official npm registry.

Hydrogen Renderer

The internal templating engine of HydrogenJS now available as a standalone package ❤️

Installation

NPM

npm install --save hydrogen-renderer

CDN

<script src="https://unpkg.com/hydrogen-renderer@0.0.2/lib/index.min.js">

Usage

import { render } from 'hydrogen-renderer'

render({
  template({ data }) {
    return `
      <p>${data.name}</p>
    `
  },
  data() {
    return {
      name: 'Hydrogen'
    }  
  }
}).then((output) => {
  console.log(output) // <p>Hydrogen</p>
})

Current Tags

  • 0.0.7                                ...           latest (a year ago)

6 Versions

  • 0.0.7                                ...           a year ago
  • 0.0.6                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 5
Dependencies (1)
Dev Dependencies (7)
Dependents (1)

Copyright 2014 - 2021 © npmmirror.com |