@jaredwray/fumanchu 1.0.0 → 1.0.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 +3 -14
- package/package.json +28 -28
package/README.md
CHANGED
|
@@ -5,9 +5,9 @@ Handlebars + Helpers Together
|
|
|
5
5
|
|
|
6
6
|
[](https://github.com/jaredwray/fumanchu/actions/workflows/tests.yaml)
|
|
7
7
|
[](https://codecov.io/gh/jaredwray/fumanchu)
|
|
8
|
-
[](https://npmjs.com/package/fumanchu)
|
|
8
|
+
[](https://npmjs.com/package/@jaredwray/fumanchu)
|
|
9
9
|
[](https://github.com/jaredwray/fumanchu/blob/master/LICENSE)
|
|
10
|
-
[](https://npmjs.com/package/fumanchu)
|
|
10
|
+
[](https://npmjs.com/package/@jaredwray/fumanchu)
|
|
11
11
|
|
|
12
12
|
[Handlebars](https://github.com/handlebars-lang/handlebars.js) + [Handlebars-helpers](https://github.com/helpers/handlebars-helpers) (helpers are now maintained in this project) combined into a single package. Easily use in your nodejs or browser projects as it is a drop in replacement when using handlebars directly.
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ npm install @jaredwray/fumanchu
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
```javascript
|
|
28
|
-
var handlebars = require('fumanchu');
|
|
28
|
+
var handlebars = require('@jaredwray/fumanchu');
|
|
29
29
|
var template = handlebars.compile('{{#if (eq foo "bar")}}<p>Foo is bar</p>{{/if}}');
|
|
30
30
|
var html = template({foo: 'bar'});
|
|
31
31
|
console.log(html);
|
|
@@ -33,17 +33,6 @@ console.log(html);
|
|
|
33
33
|
|
|
34
34
|
It's just that easy! No need to add Handlebars to your project, it's already included.
|
|
35
35
|
|
|
36
|
-
## Usage Browser - NOT WORKING YET
|
|
37
|
-
|
|
38
|
-
```html
|
|
39
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/fumanchu/1.0.0/fumanchu.min.js"></script>
|
|
40
|
-
<script>
|
|
41
|
-
var template = fumanchu.compile('{{#if (eq foo "bar")}}<p>Foo is bar</p>{{/if}}');
|
|
42
|
-
var html = template({foo: 'bar'});
|
|
43
|
-
console.log(html);
|
|
44
|
-
</script>
|
|
45
|
-
```
|
|
46
|
-
|
|
47
36
|
## Helpers
|
|
48
37
|
More than 180 Handlebars helpers in ~20 categories. Helpers can be used with Assemble, Generate, Verb, Ghost, gulp-handlebars, grunt-handlebars, consolidate, or any node.js/Handlebars project.
|
|
49
38
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaredwray/fumanchu",
|
|
3
3
|
"description": "Handlebars + Helpers = Fumanchu",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"homepage": "https://github.com/jaredwray/fumanchu",
|
|
6
6
|
"author": "Jared Wray (me@jaredwray.com)",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"array",
|
|
9
|
+
"assemble",
|
|
10
|
+
"collection",
|
|
11
|
+
"comparison",
|
|
12
|
+
"date",
|
|
13
|
+
"handlebars",
|
|
14
|
+
"helper",
|
|
15
|
+
"helpers",
|
|
16
|
+
"html",
|
|
17
|
+
"i18n",
|
|
18
|
+
"inflection",
|
|
19
|
+
"log",
|
|
20
|
+
"logging",
|
|
21
|
+
"markdown",
|
|
22
|
+
"math",
|
|
23
|
+
"number",
|
|
24
|
+
"object",
|
|
25
|
+
"path",
|
|
26
|
+
"repeat",
|
|
27
|
+
"string",
|
|
28
|
+
"template",
|
|
29
|
+
"time",
|
|
30
|
+
"url",
|
|
31
|
+
"util",
|
|
32
|
+
"utility"
|
|
33
|
+
],
|
|
7
34
|
"contributors": [
|
|
8
35
|
"Adrián Mugnolo (https://github.com/xymbol)",
|
|
9
36
|
"Aleš Kotnik (www.draagle.com)",
|
|
@@ -120,33 +147,6 @@
|
|
|
120
147
|
"template-helpers": "^1.0.1",
|
|
121
148
|
"templates": "^1.2.9"
|
|
122
149
|
},
|
|
123
|
-
"keywords": [
|
|
124
|
-
"array",
|
|
125
|
-
"assemble",
|
|
126
|
-
"collection",
|
|
127
|
-
"comparison",
|
|
128
|
-
"date",
|
|
129
|
-
"handlebars",
|
|
130
|
-
"helper",
|
|
131
|
-
"helpers",
|
|
132
|
-
"html",
|
|
133
|
-
"i18n",
|
|
134
|
-
"inflection",
|
|
135
|
-
"log",
|
|
136
|
-
"logging",
|
|
137
|
-
"markdown",
|
|
138
|
-
"math",
|
|
139
|
-
"number",
|
|
140
|
-
"object",
|
|
141
|
-
"path",
|
|
142
|
-
"repeat",
|
|
143
|
-
"string",
|
|
144
|
-
"template",
|
|
145
|
-
"time",
|
|
146
|
-
"url",
|
|
147
|
-
"util",
|
|
148
|
-
"utility"
|
|
149
|
-
],
|
|
150
150
|
"browserslist": [
|
|
151
151
|
"last 1 version",
|
|
152
152
|
"> 1%",
|