Sha256: 812f4c622ace03f6059db055beb418568f9e0b7091df9dfde98d090dc65957dc
Contents?: true
Size: 1.83 KB
Versions: 1
Compression:
Stored size: 1.83 KB
Contents
{{! Domain case. :parameter: columns: (*HERE * - :parameter_name: id :domain_element: pet_id_1 rows: false columns: false _comma: '' Cases: 1) domain_element defined --> "domain_element" 2) domain_value defined --> domain_value 3) else --> Nil 4) records/columns 5) rows Case 1: }}{{#domain_element}}{{parameter_name}}|->"{{domain_element}}"{{_comma}}{{/domain_element}}{{! Case 2: }}{{#domain_value}}{{parameter_name}}|->{{domain_value}}{{_comma}}{{/domain_value}}{{! Case 3: }}{{^domain_value}}{{^domain_element}}{{^columns.length}}{{^rows.length}}{{parameter_name}}|->Nil{{_comma}}{{/rows.length}}{{/columns.length}}{{/domain_element}}{{/domain_value}}{{! Record :parameter: columns: (*HERE* NOTICE NO domain_element ) - :parameter_name: pet rows: false columns: (** NOTICE: columns length defined **) - :parameter_name: name :domain_element: pet_name_1 rows: false columns: false _comma: "," - :parameter_name: tag :domain_element: pet_tag_1 rows: false columns: false _comma: '' _comma: '' }}{{#columns.length}} _key |-> {[ key |-> "{{parameter_name}}", rec |-> [ {{/columns.length}}{{! Here recurse columns }}{{#columns}}{{>setup/steps_run_parameterBind.mustache}}{{/columns}}{{! end of columsn iteration }}{{#columns.length}} ]]}{{_comma}}{{/columns.length}}{{! NOTICE: no newline --> parameter nicely on one line Start array parameter }}{{#rows.length}} _rows |-> { [ key |-> "{{parameter_name}}", set |-> { {{/rows.length}}{{! iterate rows [ <recursion> ] _comma }}{{#rows}} [ {{#columns}} {{>setup/steps_run_parameterBind.mustache}} {{/columns}} ] {{_comma}} {{/rows}}{{! End of rows }}{{#rows.length}} } ]} {{/rows.length}}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tla-sbuilder-0.1.0 | mustache/setup/steps_run_parameterBind.mustache |