@trustme24/flext 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  ## Flext
2
2
 
3
+ [![Static Badge](https://img.shields.io/badge/GitHub-Star%20%281%29-yellow?logo=github)](https://github.com/TrustMe-kz/flext)
4
+ [![Static Badge](https://img.shields.io/badge/NPM-Download%20%28393%29-blue)](https://www.npmjs.com/package/@trustme24/flext)
5
+
3
6
  **Flext** is a lightweight extension over Handlebars. It introduces a small DSL for handling macros and modules to help create dynamic templates. The library is compiled to both ESM and CommonJS bundles and can be embedded in other projects such as [Vue components](https://www.npmjs.com/package/vue-flext).
4
7
 
5
8
  Public documentation is available at [Wiki](https://trustmekz.atlassian.net/wiki/external/MTUwYzM5NjUzNDE4NDViMGJlMTliOWEzNzM1Y2RiZWE).
@@ -14,11 +17,11 @@ const template = `
14
17
  {{!-- @v "1.0" --}}
15
18
  {{!-- @use "put" --}}
16
19
 
17
- <div class="text-center text-red-500">{{ put data.helloworld 'No Hello World...' }}</div>
20
+ <div class="text-center text-red-500">{{ put data.helloWorld 'No hello world...' }}</div>
18
21
  `;
19
22
 
20
23
  const flext = new Flext(template, {
21
- data: { helloworld: 'Hello World!' },
24
+ data: { helloWorld: 'Hello World!' },
22
25
  });
23
26
 
24
27
  document.body.innerHTML = flext.html;
@@ -40,6 +43,20 @@ npm i tailwindcss @trustme24/flext
40
43
 
41
44
  3. **You're all set!**
42
45
 
46
+ ## Tests & Demo
47
+
48
+ - Test **App**:
49
+
50
+ ```shell
51
+ npm run test-flext:app
52
+ ```
53
+
54
+ - **All tests:**
55
+
56
+ ```shell
57
+ npm run test-flext
58
+ ```
59
+
43
60
  ---
44
61
  **Flext by Kenny Romanov**
45
62
  TrustMe