JSPM

jsx-template-engine

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q73007F
  • License MIT

Agnostic jsx template engine.

Package Exports

  • jsx-template-engine

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsx-template-engine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

JSX Template Engine


Build Status Coverage Status NPM version Code Size License PR's Welcome

Agnostic JSX template engine 🦄.

Features

  • 🥞   Inspired from [jsx-engine][].
  • 🔥   Blaze, amiable and lightweight jsx pragma.
  • 💅🏻   Based on [babel-core][].
  • ✨   Agnostic solution for Node.js server side frameworks.
  • 🎉   TypeScript support.

Installation

# npm
$ npm install jsx-template-engine
# yarn
$ yarn add jsx-template-engine

Usage

This is a practical example of how to use.

import jsx from "jsx-template-engine";

(async () => {
  // render with file.
  const jsxTag1 = await jsx.renderFile("./home.jsx", {
    title: "welcome to home page",
  });

  // render with code.
  const jsxTag2 = await jsx.render("export default () => <div>100</div>");
})();

API 🚧

License


MIT © Imed Jaberi