diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-22 19:47:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-22 19:47:28 +0900 |
commit | 716aa2a97d6654cc45ed6a9c8b08cad6d833e301 (patch) | |
tree | 685df3b138a6db0b5703b152d71271fa6966921f /lib/csapi/gtad.yaml | |
parent | 86ae04267e14ff03b5157e2d92a90fb74ce422a6 (diff) | |
download | libquotient-716aa2a97d6654cc45ed6a9c8b08cad6d833e301.tar.gz libquotient-716aa2a97d6654cc45ed6a9c8b08cad6d833e301.zip |
Switched to GTAD 0.7-pre
{{>}} instead of {{#@filePartial}}, library macros begin with _ instead
of @, mustache/definitions split - see the GTAD commit log.
Diffstat (limited to 'lib/csapi/gtad.yaml')
-rw-r--r-- | lib/csapi/gtad.yaml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/csapi/gtad.yaml b/lib/csapi/gtad.yaml index a6db9716..31dd6a83 100644 --- a/lib/csapi/gtad.yaml +++ b/lib/csapi/gtad.yaml @@ -109,12 +109,18 @@ analyzer: #operations: mustache: - definitions: - _scopeRenderer: "{{scopeCamelCase}}Job::" - _literalQuote: '"' + constants: + # Syntax elements used by GTAD +# _quote: '"' # Common quote for left and right +# _leftQuote: '"' +# _rightQuote: '"' +# _joinChar: ',' # The character used by {{_join}} - not working yet + _comment: '//' + partials: + _typeRenderer: "{{#scope}}{{scopeCamelCase}}Job::{{/scope}}{{>name}}" omittedValue: '{}' # default value to initialize omitted parameters with initializer: '{{defaultValue}}' - cjoin: '{{#@join}}, {{/@join}}' + cjoin: '{{#hasMore}}, {{/hasMore}}' openOmittable: "{{^required?}}{{#useOmittable}}{{^defaultValue}}Omittable<{{/defaultValue}}{{/useOmittable}}{{/required?}}" closeOmittable: "{{^required?}}{{#useOmittable}}{{^defaultValue}}>{{/defaultValue}}{{/useOmittable}}{{/required?}}" maybeOmittableType: "{{>openOmittable}}{{dataType.name}}{{>closeOmittable}}" |