mahalo-transformer

Transforms Mahalo template files into an exported JavaScript string


Keywords
mahalo
License
MIT
Install
npm install mahalo-transformer@0.6.0

Documentation

mahalo-transformer

This module contains a transformer for Mahalo templates. It is used to parse templates into executable JavaScript.

Installation

You should install this package as a development dependency like so:

npm install --save-dev mahalo-transformer

Usage

import * as mahaloTransformer from 'mahalo-transformer';

let result = mahaloTransformer('<use component="./my-component"/><my-component></my-component>');