mnte

0.1.1 • Public • Published

English | 简体中文

mnte download npm-version license

A simple template engine.

Installation

npm

npm i mnte

CDN

<script src="https://unpkg.com/mnte@0.1.1/dist/mnte.js"></script>

jsdelivr

<script src="https://cdn.jsdelivr.net/npm/mnte@0.1.1/dist/mnte.js"></script>

Usage

Demo1

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Demo of mnte</title>
</head>
<body>
  <h2>Demo1</h2>
  <div id="demo1"></div>
  <script>
    import mnte from 'mnte';

    const demo1 = '<a class="mnte-tab" data-tab="{{id}}" id="__mnte_tab_{{id}}">{{name}}</a>';
    document.getElementById('demo1').innerHTML = mnte(demo1, {id: 'demo1', name: 'This is Demo1!'});
  </script>
</body>
</html>

Of course, you can also download first and then use it. It's at mnte/dist. mnte.min.js for production and mnte.js for development.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i mnte

Weekly Downloads

11

Version

0.1.1

License

MIT

Unpacked Size

15.4 kB

Total Files

9

Last publish

Collaborators

  • fullbook