def generate_per_tag():
     cfg.emit_template('server_flask/controller.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME + '/controllers', cfg.TEMPLATE_CONTEXT['_current_tag'] + '_controller.py')
 def generate_per_schema():
     cfg.emit_template('server_flask/model.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME + '/models', cfg.Implementation.lower_first(cfg.TEMPLATE_CONTEXT['_current_schema']) + '.py')
Exemple #3
0
 def generate_once():
     cfg.emit_template('client_angular2/index.j2', cfg.Config.OUTPUT, 'index.ts')
     cfg.emit_template('client_angular2/variables.j2', cfg.Config.OUTPUT, 'variables.ts')
     cfg.emit_template('client_angular2/configuration.j2', cfg.Config.OUTPUT, 'configuration.ts')
     cfg.emit_template('client_angular2/api_ts.j2', cfg.Config.OUTPUT + '/api', 'api.ts')
     cfg.emit_template('client_angular2/models.j2', cfg.Config.OUTPUT + '/model', 'models.ts')
     cfg.emit_template('client_angular2/encoder.j2', cfg.Config.OUTPUT, 'encoder.ts')
     cfg.emit_template('client_angular2/api_module.j2', cfg.Config.OUTPUT, 'api.module.ts')
     cfg.emit_template('client_angular2/rxjs.j2', cfg.Config.OUTPUT, 'rxjs-operators.ts')
     cfg.emit_template('client_angular2/Dockerfile.j2', cfg.Config.PARENT, 'Dockerfile')
 def generate_once():
     cfg.emit_template('server_flask/requirements.j2', cfg.Config.OUTPUT, 'requirements.txt')
     cfg.emit_template('server_flask/Dockerfile.j2', cfg.Config.OUTPUT, 'Dockerfile')
     cfg.emit_template('server_flask/util.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME, 'util.py')
     cfg.emit_template('server_flask/encoder.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME, 'encoder.py')
     cfg.emit_template('server_flask/base_model.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME + '/models', 'base_model.py')
     cfg.emit_template('server_flask/init.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME, '__init__.py')
     cfg.emit_template('server_flask/init.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME + '/models', '__init__.py')
     cfg.emit_template('server_flask/init.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME + '/controllers', '__init__.py')
     cfg.emit_template('server_flask/main.j2', cfg.Config.OUTPUT + '/' + cfg.Config.FLASK_SERVER_NAME, '__main__.py')
     cfg.emit_template('server_flask/setup.j2', cfg.Config.OUTPUT, 'setup.py')
Exemple #5
0
 def generate_per_schema():
     cfg.emit_template('client_angular2/model.j2', cfg.Config.OUTPUT + '/model', cfg.TEMPLATE_CONTEXT['_current_schema'] + '.ts')
Exemple #6
0
 def generate_per_tag():
     cfg.emit_template('client_angular2/service.j2', cfg.Config.OUTPUT + '/api', cfg.TEMPLATE_CONTEXT['_current_tag'] + '.service.ts')
Exemple #7
0
 def generate_per_schema():
     emit_template(
         'model.j2',
         Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME + '/models',
         Implementation.lower_first(TEMPLATE_CONTEXT['_current_schema']) +
         '.py')
Exemple #8
0
 def generate_per_tag():
     emit_template(
         'controller.j2',
         Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME + '/controllers',
         TEMPLATE_CONTEXT['_current_tag'] + '_controller.py')
Exemple #9
0
 def generate_once():
     emit_template('requirements.j2', Config.OUTPUT, 'requirements.txt')
     emit_template('Dockerfile.j2', Config.OUTPUT, 'Dockerfile')
     emit_template('util.j2',
                   Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME,
                   'util.py')
     emit_template('encoder.j2',
                   Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME,
                   'encoder.py')
     emit_template(
         'base_model.j2',
         Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME + '/models',
         'base_model.py')
     emit_template('init.j2',
                   Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME,
                   '__init__.py')
     emit_template(
         'init.j2',
         Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME + '/models',
         '__init__.py')
     emit_template(
         'init.j2',
         Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME + '/controllers',
         '__init__.py')
     emit_template('main.j2',
                   Config.OUTPUT + '/' + Config.FLASK_SERVER_NAME,
                   '__main__.py')
     emit_template('setup.j2', Config.OUTPUT, 'setup.py')