1.0.4 • Published 7 months ago

nplus-lite v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

NpulsLite.js

Demo

Checkout the demo page to select demo.html

Docs

wait write....

Compatibility

Node.js: Only current and LTS Node.js versions are supported. End of life Node.js versions may become incompatible with Marked at any point in time.

Browser: Not IE11 :)

Installation

CLI:

npm install -g nplus-lite

In browser:

npm install nplus-lite

Usage

In Browser

<!doctype html>
<html lang="zh">
<head>
    <meta charset="utf-8"/>
    <title>NplusLite in the browser</title>
</head>
<body>
<div id="content">
    <h1 bind="text:innerText"></h1>
    <div>
        <h2 for="h2s">
            ${index}.${item}
        </h2>
    </div>
    <div>
        <h2 for="h2s" addNumber="1">
            ${index}.${item}
        </h2>
    </div>
</div>
<script>
    nplusLitePage = {
        data: {
            text: "",
            h2s: [
                "firstChild",
                "secondChild"
            ]
        },
        mounted() {
            this.data.text = "我是文本"
        }
    }
</script>
<script src="./nplus-lite.js"></script>
</body>
</html>

License

Copyright (c) 2023, nano71.com. (MIT License)

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago