handlebarsjs 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.builders/generators/01-bootstrap.rb +1 -1
- data/.builders/generators/domain_model.rb +146 -442
- data/.builders/generators/project-plan.rb +1 -0
- data/CHANGELOG.md +22 -0
- data/Gemfile +1 -1
- data/docs/domain_model.drawio +94 -0
- data/docs/domain_model.json +741 -0
- data/docs/domain_model.svg +3 -0
- data/docs/domain_model_custom.drawio +61 -0
- data/docs/project-plan/project.drawio +18 -15
- data/docs/project-plan/project_in_progress.svg +1 -1
- data/lib/handlebarsjs/api.rb +7 -0
- data/lib/handlebarsjs/handlebars.rb +19 -0
- data/lib/handlebarsjs/helpers/comparison/and.rb +45 -0
- data/lib/handlebarsjs/javascript/handlebars-4.7.7.js +5210 -0
- data/lib/handlebarsjs/javascript/handlebars-api.js +10 -0
- data/lib/handlebarsjs/javascript/handlebars-helpers.js +3 -0
- data/lib/handlebarsjs/javascript.rb +30 -0
- data/lib/handlebarsjs/snapshot_builder.rb +48 -0
- data/lib/handlebarsjs/version.rb +1 -1
- data/lib/handlebarsjs.rb +8 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +28 -2
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,25 @@
|
|
1
|
+
## [0.1.2](https://github.com/klueless-io/handlebarsjs/compare/v0.1.1...v0.1.2) (2022-07-01)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add snapshot builder ([f4dd8e8](https://github.com/klueless-io/handlebarsjs/commit/f4dd8e8e6a1c40da3e232bce93a33f252cc02a08))
|
7
|
+
* add snapshot builder ([c1e31c7](https://github.com/klueless-io/handlebarsjs/commit/c1e31c7e0f4402873fcbd1c3b065564bcb9457a4))
|
8
|
+
|
9
|
+
## [0.1.1](https://github.com/klueless-io/handlebarsjs/compare/v0.1.0...v0.1.1) (2022-04-17)
|
10
|
+
|
11
|
+
|
12
|
+
### Bug Fixes
|
13
|
+
|
14
|
+
* update docs ([f2912bc](https://github.com/klueless-io/handlebarsjs/commit/f2912bc287afc3ef839ace298ebd7c3aad7e1eaa))
|
15
|
+
|
16
|
+
# [0.1.0](https://github.com/klueless-io/handlebarsjs/compare/v0.0.1...v0.1.0) (2022-04-17)
|
17
|
+
|
18
|
+
|
19
|
+
### Features
|
20
|
+
|
21
|
+
* initial setup of handbarsjs gem with project plan ([e2d6c56](https://github.com/klueless-io/handlebarsjs/commit/e2d6c564ef4b72a994af2324bcb1d9b57d59253e))
|
22
|
+
|
1
23
|
## [Unreleased]
|
2
24
|
|
3
25
|
## [0.1.0] - 2022-04-18
|
data/Gemfile
CHANGED
@@ -0,0 +1,94 @@
|
|
1
|
+
<mxfile host="BiS">
|
2
|
+
<diagram id="j0L" name="Domain Modal">
|
3
|
+
<mxGraphModel dx="0" dy="0" background="#fafafa" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
|
4
|
+
<root>
|
5
|
+
<mxCell id="page_root_j0L" parent="j0L"/>
|
6
|
+
<mxCell id="node_root_j0L" parent="page_root_j0L"/>
|
7
|
+
<mxCell id="j0L-2" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Flow</b></p><hr size="1"/><p style="margin:0px;margin-left:4px;margin-bottom:4px">attach handlebars-4.7.7.js</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">attach handlebars-custom.js</p>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" vertex="1" parent="node_root_j0L">
|
8
|
+
<mxGeometry x="10" y="10" width="160" height="160" as="geometry"/>
|
9
|
+
</mxCell>
|
10
|
+
<mxCell id="j0L-3" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Configuration</b></p><hr size="1"/><p style="margin:0px;margin-left:4px;margin-bottom:4px">javascript</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">javascript_file</p>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" vertex="1" parent="node_root_j0L">
|
11
|
+
<mxGeometry x="190" y="10" width="160" height="160" as="geometry"/>
|
12
|
+
</mxCell>
|
13
|
+
<mxCell id="j0L-4" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Manager</b></p><hr size="1"/><p style="margin:0px;margin-left:4px;margin-bottom:4px">snapshot: MR::Snapshot</p><hr size="1"/><p style="margin:0px;margin-left:4px;margin-bottom:4px">load_javascript()</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">register_helper()</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">register_partial()</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">compile_template()</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">execute_template()</p><p style="margin:0px;margin-left:4px;margin-bottom:4px">execute_javascript()</p>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" vertex="1" parent="node_root_j0L">
|
14
|
+
<mxGeometry x="370" y="10" width="160" height="160" as="geometry"/>
|
15
|
+
</mxCell>
|
16
|
+
<mxCell id="j0L-5" value="<p style="margin:0px;margin-left:4px;margin-bottom:4px;text-align:center"><b>Context</b></p><hr size="1"/>" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333;align=left;overflow=fill;fontSize=12;fontFamily=Helvetica" vertex="1" parent="node_root_j0L">
|
17
|
+
<mxGeometry x="550" y="10" width="160" height="160" as="geometry"/>
|
18
|
+
</mxCell>
|
19
|
+
<mxCell id="j0L-6" value="" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#fafafa;strokeColor=#fafafa;fontColor=#fafafa" vertex="1" parent="node_root_j0L">
|
20
|
+
<mxGeometry x="805" y="85" width="10" height="10" as="geometry"/>
|
21
|
+
</mxCell>
|
22
|
+
<mxCell id="j0L-7" value="" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#fafafa;strokeColor=#fafafa;fontColor=#fafafa" vertex="1" parent="node_root_j0L">
|
23
|
+
<mxGeometry x="985" y="85" width="10" height="10" as="geometry"/>
|
24
|
+
</mxCell>
|
25
|
+
<mxCell id="a1" value="KManager -> KBuilder" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333" vertex="1" parent="node_root_j0L">
|
26
|
+
<mxGeometry x="10" y="190" width="80" height="80" as="geometry"/>
|
27
|
+
</mxCell>
|
28
|
+
<mxCell id="a2" value="Handlebars-Helpers (ruby)" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333" vertex="1" parent="node_root_j0L">
|
29
|
+
<mxGeometry x="110" y="190" width="80" height="80" as="geometry"/>
|
30
|
+
</mxCell>
|
31
|
+
<mxCell id="a3" value="HandlebarsJS (ruby)" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333" vertex="1" parent="node_root_j0L">
|
32
|
+
<mxGeometry x="210" y="190" width="80" height="80" as="geometry"/>
|
33
|
+
</mxCell>
|
34
|
+
<mxCell id="a4" value="Mini Racer" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333" vertex="1" parent="node_root_j0L">
|
35
|
+
<mxGeometry x="310" y="190" width="80" height="80" as="geometry"/>
|
36
|
+
</mxCell>
|
37
|
+
<mxCell id="a5" value="Handlebars (ruby)" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333" vertex="1" parent="node_root_j0L">
|
38
|
+
<mxGeometry x="410" y="190" width="80" height="80" as="geometry"/>
|
39
|
+
</mxCell>
|
40
|
+
<mxCell id="a6" value="The Ruby Racer" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333" vertex="1" parent="node_root_j0L">
|
41
|
+
<mxGeometry x="510" y="190" width="80" height="80" as="geometry"/>
|
42
|
+
</mxCell>
|
43
|
+
<mxCell id="a7" value="Node V8 engine" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#1ba1e2;strokeColor=#006EAF;fontColor=#ffffff" vertex="1" parent="node_root_j0L">
|
44
|
+
<mxGeometry x="10" y="290" width="80" height="80" as="geometry"/>
|
45
|
+
</mxCell>
|
46
|
+
<mxCell id="a8" value="Handlebars.js (javascript)" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00;fontColor=#333333" vertex="1" parent="node_root_j0L">
|
47
|
+
<mxGeometry x="110" y="290" width="80" height="80" as="geometry"/>
|
48
|
+
</mxCell>
|
49
|
+
<mxCell id="j0L-17" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a1" target="a2" edge="1">
|
50
|
+
<mxGeometry relative="1" as="geometry"/>
|
51
|
+
</mxCell>
|
52
|
+
<mxCell id="j0L-18" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a2" target="a3" edge="1">
|
53
|
+
<mxGeometry relative="1" as="geometry"/>
|
54
|
+
</mxCell>
|
55
|
+
<mxCell id="j0L-19" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a3" target="a4" edge="1">
|
56
|
+
<mxGeometry relative="1" as="geometry"/>
|
57
|
+
</mxCell>
|
58
|
+
<mxCell id="j0L-20" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a2" target="a5" edge="1">
|
59
|
+
<mxGeometry relative="1" as="geometry"/>
|
60
|
+
</mxCell>
|
61
|
+
<mxCell id="j0L-21" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a5" target="a6" edge="1">
|
62
|
+
<mxGeometry relative="1" as="geometry"/>
|
63
|
+
</mxCell>
|
64
|
+
<mxCell id="j0L-22" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a4" target="a7" edge="1">
|
65
|
+
<mxGeometry relative="1" as="geometry"/>
|
66
|
+
</mxCell>
|
67
|
+
<mxCell id="j0L-23" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a6" target="a7" edge="1">
|
68
|
+
<mxGeometry relative="1" as="geometry"/>
|
69
|
+
</mxCell>
|
70
|
+
<mxCell id="j0L-24" value="" style="edgeStyle=orthogonalEdgeStyle;curved=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;startArrow=none;startFill=1;endArrow=open;endFill=1;whiteSpace=wrap;html=1;rounded=0;fillColor=#ffe6cc;strokeColor=#d79b00" parent="node_root_j0L" source="a7" target="a8" edge="1">
|
71
|
+
<mxGeometry relative="1" as="geometry"/>
|
72
|
+
</mxCell>
|
73
|
+
<mxCell id="j0L-25" value="" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#fafafa;strokeColor=#fafafa;fontColor=#fafafa" vertex="1" parent="node_root_j0L">
|
74
|
+
<mxGeometry x="245" y="325" width="10" height="10" as="geometry"/>
|
75
|
+
</mxCell>
|
76
|
+
<mxCell id="j0L-26" value="" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#fafafa;strokeColor=#fafafa;fontColor=#fafafa" vertex="1" parent="node_root_j0L">
|
77
|
+
<mxGeometry x="345" y="325" width="10" height="10" as="geometry"/>
|
78
|
+
</mxCell>
|
79
|
+
<mxCell id="j0L-27" value="" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#fafafa;strokeColor=#fafafa;fontColor=#fafafa" vertex="1" parent="node_root_j0L">
|
80
|
+
<mxGeometry x="445" y="325" width="10" height="10" as="geometry"/>
|
81
|
+
</mxCell>
|
82
|
+
<mxCell id="j0L-28" value="" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#fafafa;strokeColor=#fafafa;fontColor=#fafafa" vertex="1" parent="node_root_j0L">
|
83
|
+
<mxGeometry x="545" y="325" width="10" height="10" as="geometry"/>
|
84
|
+
</mxCell>
|
85
|
+
<mxCell id="j0L-30" value="Domain Model" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;fontSize=20;verticalAlign=top" vertex="1" parent="node_root_j0L">
|
86
|
+
<mxGeometry x="25" y="405" width="50" height="50" as="geometry"/>
|
87
|
+
</mxCell>
|
88
|
+
<mxCell id="j0L-31" value="GEM Architecture Flow" style="whiteSpace=wrap;html=1;rounded=0;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;fontSize=20;verticalAlign=top" vertex="1" parent="node_root_j0L">
|
89
|
+
<mxGeometry x="25" y="505" width="50" height="50" as="geometry"/>
|
90
|
+
</mxCell>
|
91
|
+
</root>
|
92
|
+
</mxGraphModel>
|
93
|
+
</diagram>
|
94
|
+
</mxfile>
|