Skip to content

rokka-io/rokka-render.js

Repository files navigation

rokka-render.js NPM version Build Status

Small JavaScript client library for just some rendering functions of rokka.js for rokka.

rokka-render.js runs on node as well as within the supported browsers.

It's mainly meant to be used in a browser, where size is important and where you just need the following methods and not the whole feature set of rokka.js:

Install

$ npm install rokka-render --save

Usage

import { getUrlFromUrl, getUrl, addStackVariables } from 'rokka-render'

const url = getUrlFromUrl('https://myorg.rokka.io/dynamic/c421f4e8cefe0fd3aab22832f51e85bacda0a47a.png', 'mystack')

See rokka.js#render for details about the methods.