handlebarsjs 0.1.1 → 0.3.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/domain_model.rb +146 -442
- data/CHANGELOG.md +23 -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/lib/handlebarsjs/api.rb +7 -0
- data/lib/handlebarsjs/handlebars.rb +20 -0
- data/lib/handlebarsjs/handlebars_snapshot.rb +72 -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 +11 -0
- data/lib/handlebarsjs/javascript/handlebars-helpers.js +3 -0
- data/lib/handlebarsjs/javascript.rb +31 -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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15c79e4eeab6a4fd09c9bd0cea9e7026915b0ebda02cb674f5b6f9452cebbdfb
|
4
|
+
data.tar.gz: d6585183a584d0547012feebb57c8e2fb80168bc91d1e7a153022f71c7c346e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0be0808881aa15b12ffecce41193bb6a293440e71f0b197c8f2844cba51c635080e13db93bf445a97fb462811404a14733c8ee46b58eb7aa41b669630ab87f54
|
7
|
+
data.tar.gz: 4c5c159dec697cf909c17eb5e28582f6eb04d87381444c8c963b024bbfd62517dbe98c561c98b5dbe4d09835281c6e992154bdbf11ca90e60aa9e385ec273936
|
@@ -5,462 +5,166 @@ KManager.action :domain_model do
|
|
5
5
|
.init(k_builder, on_exist: :write, on_action: :execute)
|
6
6
|
.diagram(theme: :style_04)
|
7
7
|
.page('Domain Modal', margin_left: 0, margin_top: 0, rounded: 0, background: '#fafafa') do
|
8
|
-
|
8
|
+
group_element = {
|
9
|
+
theme: :style_01, w: 50, h: 50
|
10
|
+
}
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
blank = {
|
13
|
+
fill_color: '#fafafa',
|
14
|
+
stroke_color: '#fafafa',
|
15
|
+
font_color: '#fafafa',
|
16
|
+
w: 10,
|
17
|
+
h: 10
|
18
|
+
}
|
14
19
|
|
15
|
-
|
16
|
-
# square(fill_color: '#fafafa', stroke_color: '#fafafa', font_color: '#333333')
|
20
|
+
box_width = 160
|
17
21
|
|
18
|
-
|
22
|
+
################################################################################
|
23
|
+
# Domain Model
|
24
|
+
################################################################################
|
19
25
|
|
20
|
-
|
21
|
-
format
|
22
|
-
.header('ShapeDefaults')
|
23
|
-
.field(:type, type: :symbol)
|
24
|
-
.field(:category, type: :symbol)
|
25
|
-
.field(:x, type: :integer)
|
26
|
-
.field(:y, type: :integer)
|
27
|
-
.field(:w, type: :integer)
|
28
|
-
.field(:h, type: :integer)
|
29
|
-
.field(:style_modifiers, type: :string)
|
30
|
-
end
|
31
|
-
|
32
|
-
klass(description: '') do
|
33
|
-
format
|
34
|
-
.header('ShapeThemeStyle')
|
35
|
-
.field(:theme, type: :symbol)
|
36
|
-
.field(:fill_color, type: :string)
|
37
|
-
.field(:stroke_color, type: :string)
|
38
|
-
.field(:font_color, type: :string)
|
39
|
-
end
|
40
|
-
|
41
|
-
klass(description: 'Configuration container for the DrawIO DSL') do
|
42
|
-
format
|
43
|
-
.header('Configuration')
|
44
|
-
.field(:base_style, type: :Struct)
|
45
|
-
.field(:shapes, type: 'Hash<Struct>')
|
46
|
-
.field(:themes, type: :Hash)
|
47
|
-
.method('+ <ConfigurationThemes>')
|
48
|
-
.method('+ <ConfigurationShapes>')
|
49
|
-
end
|
50
|
-
|
51
|
-
interface(description: 'Used to attach configuration to KConfig module', theme: :style_02) do
|
52
|
-
format
|
53
|
-
.header('ConfigurationExtension', interface_type: 'MixIn')
|
54
|
-
.field(:drawio, type: :Configuration)
|
55
|
-
end
|
56
|
-
|
57
|
-
interface(description: 'Attach predefined DrawIO shapes to KConfig module', theme: :style_02) do
|
58
|
-
format
|
59
|
-
.header('ConfigurationShapes', interface_type: 'MixIn')
|
60
|
-
.method(:add_shapes)
|
61
|
-
end
|
62
|
-
|
63
|
-
interface(description: 'Configuration for each theme', theme: :style_02) do
|
64
|
-
format
|
65
|
-
.header('ConfigurationThemes', interface_type: 'MixIn')
|
66
|
-
.method(:add_theme)
|
67
|
-
.method(:add_themes)
|
68
|
-
end
|
69
|
-
|
70
|
-
square(title: 'DOM Builder', theme: :style_01)
|
71
|
-
|
72
|
-
klass(description: 'Build Document object model to represent DrawioDsl output file.') do
|
73
|
-
format
|
74
|
-
.header('DomBuilder')
|
75
|
-
.field(:actions, type: :Array)
|
76
|
-
.field(:last_action, type: :Hash)
|
77
|
-
.field(:focus_node, type: :Anchor)
|
78
|
-
.field(:current_page, type: :Page)
|
79
|
-
.field(:dom)
|
80
|
-
.method(:reset)
|
81
|
-
.method(:queue_action)
|
82
|
-
.method(:set_diagram)
|
83
|
-
.method(:diagram)
|
84
|
-
.method(:add_page)
|
85
|
-
.method(:add_grid_layout)
|
86
|
-
.method(:add_flex_layout)
|
87
|
-
.method(:add_layout)
|
88
|
-
.method(:add_shape)
|
89
|
-
.method('+ <DomBuilderShapes>')
|
90
|
-
end
|
91
|
-
|
92
|
-
interface(description: 'Builder methods for each shape, line and text element to attach to DomBuilder.', theme: :style_02) do
|
93
|
-
format
|
94
|
-
.header('DomBuilderShapes', interface_type: 'MixIn')
|
95
|
-
.method('add_* (for each shape)')
|
96
|
-
end
|
97
|
-
|
98
|
-
square(title: 'DrawIO DSL', theme: :style_01)
|
99
|
-
|
100
|
-
klass(description: 'DSL for draw-io diagrams') do
|
101
|
-
format
|
102
|
-
.header('Drawio')
|
103
|
-
.method(:diagram)
|
104
|
-
.method(:page)
|
105
|
-
.method(:save)
|
106
|
-
.method(:osave)
|
107
|
-
.method(:export_svg)
|
108
|
-
.method(:export_png)
|
109
|
-
end
|
110
|
-
|
111
|
-
klass(description: 'DSL for draw-io diagrams') do
|
112
|
-
format
|
113
|
-
.header('DrawioPage')
|
114
|
-
.method(:grid_layout)
|
115
|
-
.method(:flex_layout)
|
116
|
-
.method('+ <DrawioShapes>')
|
117
|
-
end
|
118
|
-
|
119
|
-
interface(description: 'List of DSL methods for each common shape', theme: :style_02) do
|
120
|
-
format
|
121
|
-
.header('DrawioShapes', interface_type: 'MixIn')
|
122
|
-
.method(:random)
|
123
|
-
.method('* (for each shape)')
|
124
|
-
end
|
125
|
-
|
126
|
-
square(title: '1000 Extension Shapes', theme: :style_01)
|
26
|
+
grid_layout(wrap_at: 6, grid_w: box_width+20, grid_h: box_width+20)
|
127
27
|
|
128
|
-
klass(
|
28
|
+
klass(theme: :style_02) do
|
129
29
|
format
|
130
|
-
.header('
|
131
|
-
.field(
|
132
|
-
.field(
|
133
|
-
.method(:section)
|
134
|
-
.method(:shape)
|
135
|
-
.method(:to_h)
|
136
|
-
.method(:build_extensions)
|
137
|
-
.method(:configure_extensions)
|
138
|
-
.method('+ <DrawioExtensionsActive>')
|
30
|
+
.header('Flow')
|
31
|
+
.field('attach handlebars-4.7.7.js')
|
32
|
+
.field('attach handlebars-custom.js')
|
139
33
|
end
|
140
34
|
|
141
|
-
interface(description: 'Mark shapes as active or not, based on incomplete style being made inactive', theme: :style_02) do
|
142
|
-
format
|
143
|
-
.header('DrawioExtensionsActive', interface_type: 'MixIn')
|
144
|
-
.method(:apply_active_flags)
|
145
|
-
.method(:check_if_active)
|
146
|
-
end
|
147
|
-
|
148
|
-
klass(description: 'Layout engine is responsible for laying out the elements on the page') do
|
149
|
-
format
|
150
|
-
.header('LayoutEngine')
|
151
|
-
.field(:page, type: :Page)
|
152
|
-
.field(:current_page, type: :Page)
|
153
|
-
.field(:current_layout, type: :Layout)
|
154
|
-
.method(:call)
|
155
|
-
.method(:traverse_node)
|
156
|
-
.method(:process_node)
|
157
|
-
end
|
158
|
-
|
159
|
-
klass(description: 'Build the DrawioDsl XML file that is the basis of any draw-io diagrams.') do
|
160
|
-
format
|
161
|
-
.header('XmlBuilder')
|
162
|
-
.field(:diagram)
|
163
|
-
.method(:build)
|
164
|
-
end
|
165
|
-
|
166
|
-
square(title: 'Formatters', theme: :style_01)
|
167
|
-
|
168
|
-
klass(description: 'HTML builder has methods for common HTML elements that get written sequentially') do
|
169
|
-
format
|
170
|
-
.header('HtmlBuilder')
|
171
|
-
.field(:element_style_defaults, type: :Hash)
|
172
|
-
.method(:default_for)
|
173
|
-
.method(:style_for)
|
174
|
-
.method(:empty?)
|
175
|
-
.method(:exist?)
|
176
|
-
.method(:as_html)
|
177
|
-
.method(:hr)
|
178
|
-
.method(:b)
|
179
|
-
.method(:p)
|
180
|
-
.method(:add_line)
|
181
|
-
.method(:add_placeholder)
|
182
|
-
.method(:group)
|
183
|
-
.method(:build_lines)
|
184
|
-
.method(:lines)
|
185
|
-
.method(:groups)
|
186
|
-
end
|
187
35
|
|
188
|
-
|
36
|
+
klass() do
|
189
37
|
format
|
190
|
-
.header('
|
191
|
-
.
|
192
|
-
.
|
193
|
-
end
|
194
|
-
|
195
|
-
klass(
|
196
|
-
format
|
197
|
-
.header('
|
198
|
-
.field(:
|
199
|
-
.method(:
|
200
|
-
.method(:
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
.method(:add_node)
|
315
|
-
end
|
316
|
-
|
317
|
-
klass(description: 'node_list') do
|
318
|
-
format
|
319
|
-
.header('NodeList')
|
320
|
-
.field(:nodes, type: :Array)
|
321
|
-
.method(:add)
|
322
|
-
.method(:all)
|
323
|
-
.method(:shapes)
|
324
|
-
.method(:layouts)
|
325
|
-
.method(:length)
|
326
|
-
.method(:empty?)
|
327
|
-
.method(:any?)
|
328
|
-
.method(:first)
|
329
|
-
.method(:as_xml)
|
330
|
-
.method(:to_h)
|
331
|
-
end
|
332
|
-
|
333
|
-
klass(description: 'page') do
|
334
|
-
format
|
335
|
-
.header('Page')
|
336
|
-
.field(:diagram, type: :Diagram)
|
337
|
-
.field(:position_x, type: :int)
|
338
|
-
.field(:position_y, type: :int)
|
339
|
-
.field(:id, type: :String)
|
340
|
-
.field(:active, type: :bool)
|
341
|
-
.field(:name, type: :String)
|
342
|
-
.field(:theme, type: :Symbol)
|
343
|
-
.field(:style, type: :CommonStyle)
|
344
|
-
.field(:palette, type: :DefaultPalette)
|
345
|
-
.field(:margin_left, type: :int)
|
346
|
-
.field(:margin_top, type: :int)
|
347
|
-
.field(:nodes, type: :Array)
|
348
|
-
.field(:grid, type: :String)
|
349
|
-
.field(:grid_size, type: :int)
|
350
|
-
.field(:guides, type: :String)
|
351
|
-
.field(:tooltips, type: :String)
|
352
|
-
.field(:connect, type: :String)
|
353
|
-
.field(:arrows, type: :String)
|
354
|
-
.field(:fold, type: :String)
|
355
|
-
.field(:page_no, type: :String)
|
356
|
-
.field(:page_scale, type: :String)
|
357
|
-
.field(:page_width, type: :String)
|
358
|
-
.field(:page_height, type: :String)
|
359
|
-
.field(:background, type: :String)
|
360
|
-
.field(:page_shadow, type: :String)
|
361
|
-
.field(:math, type: :String)
|
362
|
-
.field(:active?, type: :Boolean)
|
363
|
-
.method(:add_node)
|
364
|
-
.method(:as_xml)
|
365
|
-
.method(:to_h)
|
366
|
-
.method(:settings)
|
367
|
-
end
|
368
|
-
|
369
|
-
square(title: 'Schema/Layouts', theme: :style_01)
|
370
|
-
|
371
|
-
klass(description: 'flex_layout') do
|
372
|
-
format
|
373
|
-
.header('FlexLayout')
|
374
|
-
.field(:direction, type: :String)
|
375
|
-
.field(:wrap_at, type: :int)
|
376
|
-
.field(:gap, type: :int)
|
377
|
-
.field(:perpendicular_max, type: :int)
|
378
|
-
.method(:position_shape)
|
379
|
-
.method(:to_h)
|
380
|
-
end
|
381
|
-
|
382
|
-
klass(description: 'grid_layout') do
|
383
|
-
format
|
384
|
-
.header('GridLayout')
|
385
|
-
.field(:direction, type: :String)
|
386
|
-
.field(:wrap_at, type: :int)
|
387
|
-
.field(:grid_size, type: :int)
|
388
|
-
.field(:grid_w, type: :int)
|
389
|
-
.field(:grid_h, type: :int)
|
390
|
-
.field(:cell_no, type: :int)
|
391
|
-
.field(:h_align, type: :String)
|
392
|
-
.field(:v_align, type: :String)
|
393
|
-
.method(:position_shape)
|
394
|
-
.method(:to_h)
|
395
|
-
end
|
396
|
-
|
397
|
-
klass(description: 'layout') do
|
398
|
-
format
|
399
|
-
.header('Layout')
|
400
|
-
.field(:anchor_x, type: :String)
|
401
|
-
.field(:anchor_y, type: :String)
|
402
|
-
.method(:fire_after_init)
|
403
|
-
.method(:after_init)
|
404
|
-
.method(:to_h)
|
405
|
-
end
|
406
|
-
|
407
|
-
|
408
|
-
square(title: 'Schema/virtual', theme: :style_01)
|
409
|
-
send(shape_element, title: 'anchor' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
410
|
-
square(title: 'Schema/shapes', theme: :style_01)
|
411
|
-
|
412
|
-
grid_layout(wrap_at: 12, grid_w: 90, grid_h: 70)
|
413
|
-
|
414
|
-
send(shape_element, title: 'actor' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
415
|
-
send(shape_element, title: 'actor2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
416
|
-
send(shape_element, title: 'callout' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
417
|
-
send(shape_element, title: 'callout2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
418
|
-
send(shape_element, title: 'callout3' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
419
|
-
send(shape_element, title: 'callout4' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
420
|
-
send(shape_element, title: 'circle' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
421
|
-
send(shape_element, title: 'cloud' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
422
|
-
send(shape_element, title: 'container' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
423
|
-
send(shape_element, title: 'container2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
424
|
-
send(shape_element, title: 'container3' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
425
|
-
send(shape_element, title: 'container4' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
426
|
-
send(shape_element, title: 'cross' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
427
|
-
send(shape_element, title: 'database' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
428
|
-
send(shape_element, title: 'db_json' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
429
|
-
send(shape_element, title: 'diamond' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
430
|
-
send(shape_element, title: 'document' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
431
|
-
send(shape_element, title: 'ellipse' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
432
|
-
send(shape_element, title: 'embed_col200' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
433
|
-
send(shape_element, title: 'embed_col50' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
434
|
-
send(shape_element, title: 'embed_row' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
435
|
-
send(shape_element, title: 'envelop' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
436
|
-
send(shape_element, title: 'face' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
437
|
-
send(shape_element, title: 'h1' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
438
|
-
send(shape_element, title: 'h2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
439
|
-
send(shape_element, title: 'h3' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
440
|
-
send(shape_element, title: 'h4' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
441
|
-
send(shape_element, title: 'h5' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
442
|
-
send(shape_element, title: 'h6' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
443
|
-
send(shape_element, title: 'hexagon' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
444
|
-
send(shape_element, title: 'interface' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
445
|
-
send(shape_element, title: 'klass' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
446
|
-
send(shape_element, title: 'line' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
447
|
-
send(shape_element, title: 'note' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
448
|
-
send(shape_element, title: 'p' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
449
|
-
send(shape_element, title: 'process' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
450
|
-
send(shape_element, title: 'rectangle' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
451
|
-
send(shape_element, title: 'rectangle2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
452
|
-
send(shape_element, title: 'shape' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
453
|
-
send(shape_element, title: 'square' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
454
|
-
send(shape_element, title: 'step' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
455
|
-
send(shape_element, title: 'tick' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
456
|
-
send(shape_element, title: 'todo' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
457
|
-
send(shape_element, title: 'triangle' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
38
|
+
.header('Configuration')
|
39
|
+
.field(:javascript)
|
40
|
+
.field(:javascript_file)
|
41
|
+
end
|
42
|
+
|
43
|
+
klass() do
|
44
|
+
format
|
45
|
+
.header('Manager')
|
46
|
+
.field(:snapshot , type: 'MR::Snapshot')
|
47
|
+
.method(:load_javascript)
|
48
|
+
.method(:register_helper) # support javascript or ruby
|
49
|
+
.method(:register_partial)
|
50
|
+
.method(:compile_template) # compiles a template and then returns it as a memory object to
|
51
|
+
.method(:execute_template) #
|
52
|
+
.method(:execute_javascript)
|
53
|
+
|
54
|
+
end
|
55
|
+
|
56
|
+
klass() do
|
57
|
+
format
|
58
|
+
.header('Context')
|
59
|
+
end
|
60
|
+
|
61
|
+
2.times { square(**blank) }
|
62
|
+
|
63
|
+
################################################################################
|
64
|
+
# Gem Architecture
|
65
|
+
################################################################################
|
66
|
+
|
67
|
+
box_width = 80
|
68
|
+
|
69
|
+
grid_layout(wrap_at: 6, grid_w: box_width+20, grid_h: box_width+20)
|
70
|
+
|
71
|
+
original = {
|
72
|
+
theme: :style_04, w: box_width, h: box_width
|
73
|
+
}
|
74
|
+
new_gems = {
|
75
|
+
theme: :style_03, w: box_width, h: box_width
|
76
|
+
}
|
77
|
+
old_gems = {
|
78
|
+
theme: :style_06, w: box_width, h: box_width
|
79
|
+
}
|
80
|
+
v8_engine = {
|
81
|
+
theme: :style_10, w: box_width, h: box_width
|
82
|
+
}
|
83
|
+
|
84
|
+
square(:a1, **original , title: 'KManager -> KBuilder')
|
85
|
+
square(:a2, **original , title: 'Handlebars-Helpers (ruby)')
|
86
|
+
square(:a3, **new_gems , title: 'HandlebarsJS (ruby)')
|
87
|
+
square(:a4, **new_gems , title: 'Mini Racer')
|
88
|
+
square(:a5, **old_gems , title: 'Handlebars (ruby)')
|
89
|
+
square(:a6, **old_gems , title: 'The Ruby Racer')
|
90
|
+
|
91
|
+
square(:a7, **v8_engine , title: 'Node V8 engine')
|
92
|
+
square(:a8, **original , title: 'Handlebars.js (javascript)')
|
93
|
+
|
94
|
+
solid(source: :a1, target: :a2, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
95
|
+
solid(source: :a2, target: :a3, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
96
|
+
solid(source: :a3, target: :a4, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
97
|
+
solid(source: :a2, target: :a5, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
98
|
+
solid(source: :a5, target: :a6, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
99
|
+
|
100
|
+
solid(source: :a4, target: :a7, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
101
|
+
solid(source: :a6, target: :a7, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
102
|
+
|
103
|
+
solid(source: :a7, target: :a8, exit_point: :e, entry_point: :w, waypoint: :orthogonal_curved)
|
104
|
+
|
105
|
+
4.times { square(**blank) }
|
106
|
+
|
107
|
+
grid_layout(wrap_at: 1, grid_w: box_width+20, grid_h: box_width+20)
|
108
|
+
group(title: 'Domain Model', **group_element)
|
109
|
+
group(title: 'GEM Architecture Flow', **group_element)
|
110
|
+
|
111
|
+
# grid_layout(wrap_at: 12, grid_w: 90, grid_h: 70)
|
112
|
+
|
113
|
+
# shape_element = :rectangle2 # hexagon, diamond, ellipse
|
114
|
+
# shape_element_w = 75
|
115
|
+
# shape_element_h = 50
|
116
|
+
# shape_element_theme = :style_03
|
117
|
+
|
118
|
+
# send(shape_element, title: 'actor' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
119
|
+
# send(shape_element, title: 'actor2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
120
|
+
# send(shape_element, title: 'callout' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
121
|
+
# send(shape_element, title: 'callout2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
122
|
+
# send(shape_element, title: 'callout3' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
123
|
+
# send(shape_element, title: 'callout4' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
124
|
+
# send(shape_element, title: 'circle' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
125
|
+
# send(shape_element, title: 'cloud' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
126
|
+
# send(shape_element, title: 'container' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
127
|
+
# send(shape_element, title: 'container2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
128
|
+
# send(shape_element, title: 'container3' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
129
|
+
# send(shape_element, title: 'container4' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
130
|
+
# send(shape_element, title: 'cross' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
131
|
+
# send(shape_element, title: 'database' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
132
|
+
# send(shape_element, title: 'db_json' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
133
|
+
# send(shape_element, title: 'diamond' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
134
|
+
# send(shape_element, title: 'document' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
135
|
+
# send(shape_element, title: 'ellipse' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
136
|
+
# send(shape_element, title: 'embed_col200' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
137
|
+
# send(shape_element, title: 'embed_col50' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
138
|
+
# send(shape_element, title: 'embed_row' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
139
|
+
# send(shape_element, title: 'envelop' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
140
|
+
# send(shape_element, title: 'face' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
141
|
+
# send(shape_element, title: 'h1' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
142
|
+
# send(shape_element, title: 'h2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
143
|
+
# send(shape_element, title: 'h3' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
144
|
+
# send(shape_element, title: 'h4' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
145
|
+
# send(shape_element, title: 'h5' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
146
|
+
# send(shape_element, title: 'h6' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
147
|
+
# send(shape_element, title: 'hexagon' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
148
|
+
# send(shape_element, title: 'interface' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
149
|
+
# send(shape_element, title: 'klass' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
150
|
+
# send(shape_element, title: 'line' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
151
|
+
# send(shape_element, title: 'note' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
152
|
+
# send(shape_element, title: 'p' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
153
|
+
# send(shape_element, title: 'process' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
154
|
+
# send(shape_element, title: 'rectangle' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
155
|
+
# send(shape_element, title: 'rectangle2' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
156
|
+
# send(shape_element, title: 'shape' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
157
|
+
# send(shape_element, title: 'square' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
158
|
+
# send(shape_element, title: 'step' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
159
|
+
# send(shape_element, title: 'tick' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
160
|
+
# send(shape_element, title: 'todo' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
161
|
+
# send(shape_element, title: 'triangle' , w: shape_element_w, h: shape_element_h, theme: shape_element_theme)
|
458
162
|
|
459
163
|
end
|
460
164
|
.cd(:docs)
|
461
|
-
.
|
165
|
+
.save('domain_model.drawio')
|
462
166
|
.save_json('domain_model')
|
463
|
-
.export_svg('domain_model', page: 1)
|
167
|
+
# .export_svg('domain_model', page: 1)
|
464
168
|
end
|
465
169
|
end
|
466
170
|
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,26 @@
|
|
1
|
+
# [0.2.0](https://github.com/klueless-io/handlebarsjs/compare/v0.1.2...v0.2.0) (2022-07-02)
|
2
|
+
|
3
|
+
|
4
|
+
### Features
|
5
|
+
|
6
|
+
* add support for basic template processing ([13d9649](https://github.com/klueless-io/handlebarsjs/commit/13d9649c03fa7de0326bed71d08441453194e4e1))
|
7
|
+
* add support for basic template processing ([64966e5](https://github.com/klueless-io/handlebarsjs/commit/64966e5ad396910dd0e7edc11a4d8427a10cae29))
|
8
|
+
|
9
|
+
## [0.1.2](https://github.com/klueless-io/handlebarsjs/compare/v0.1.1...v0.1.2) (2022-07-01)
|
10
|
+
|
11
|
+
|
12
|
+
### Bug Fixes
|
13
|
+
|
14
|
+
* add snapshot builder ([f4dd8e8](https://github.com/klueless-io/handlebarsjs/commit/f4dd8e8e6a1c40da3e232bce93a33f252cc02a08))
|
15
|
+
* add snapshot builder ([c1e31c7](https://github.com/klueless-io/handlebarsjs/commit/c1e31c7e0f4402873fcbd1c3b065564bcb9457a4))
|
16
|
+
|
17
|
+
## [0.1.1](https://github.com/klueless-io/handlebarsjs/compare/v0.1.0...v0.1.1) (2022-04-17)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* update docs ([f2912bc](https://github.com/klueless-io/handlebarsjs/commit/f2912bc287afc3ef839ace298ebd7c3aad7e1eaa))
|
23
|
+
|
1
24
|
# [0.1.0](https://github.com/klueless-io/handlebarsjs/compare/v0.0.1...v0.1.0) (2022-04-17)
|
2
25
|
|
3
26
|
|