Skip to content
Snippets Groups Projects
Select Git revision
  • 1a16871d3b6349d35e5f584f750a85d43f2b87a2
  • master default protected
  • 20-poc-use-tinytemplate-as-template-engine
  • dev/rene
  • feature/submodule
  • feature/relast
6 results

mappingApplication.mustache

Blame
  • rschoene's avatar
    René Schöne authored
    - added fail-fast behaviour to mustache (if a name/method can not be resolved)
    - enabled logging of mustache (using log4j)
    1a16871d
    History
    mappingApplication.mustache 438 B
    {{lastDefinitionToType}} {{resultVarPrefix}}{{lastDefinitionName}};
    try {
      {{#InnerMappingDefinitions}}
      {{^last}}{{ToType}} {{/last}}{{resultVarPrefix}}{{methodName}} = {{methodName}}({{inputVarName}});{{!inputVarName has to be computed beforehand}}
      {{/InnerMappingDefinitions}}
    } catch (Exception e) {
      e.printStackTrace();
      {{preemptiveReturn}}
    }
    {{^alwaysApply}}
    if ({{{condition}}}) {
      {{preemptiveReturn}}
    }
    {{/alwaysApply}}