0.7.3 • Published 5 years ago
maraca-render v0.7.3
Maraca-Render for JavaScript / web
The Maraca-Render library for JavaScript / web. Use this to render Maraca output as dynamic HTML.
Install
yarn add maraca-render
or
npm install maraca-render --save
Maraca-Render documentation
Full documentation for working with Maraca data as HTML (via Maraca-Render) can be found at https://maraca-lang.org/app.
Basic Usage
import maraca from 'maraca';
import render from 'maraca-render';
const source = "[style: ['font-weight': bold], Hello World]";
maraca(source, render(document.getElementById('root')));
API
The core API takes a node, and creates a function which can be passed into Maraca, to render the output as HTML inside the provided root node.
render = (node) => ((data) => void);
0.7.3
5 years ago
0.7.2
5 years ago
0.7.1
5 years ago
0.7.0
5 years ago
0.6.4
5 years ago
0.6.3
5 years ago
0.6.2
5 years ago
0.6.1
5 years ago
0.6.0
5 years ago
0.5.0
5 years ago
0.4.1
6 years ago
0.4.0
6 years ago
0.3.3
6 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.8
6 years ago
0.2.7
6 years ago
0.2.6
6 years ago
0.2.5
6 years ago
0.2.4
6 years ago
0.2.3
6 years ago
0.2.2
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.0
7 years ago
0.0.1
7 years ago