How to use the angular2-hapi-engine.hapiEngine function in angular2-hapi-engine

To help you get started, we’ve selected a few angular2-hapi-engine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angular / universal / examples / src / server / hapi / server.ts View on Github external
app.register([Vision, Inert], (err) => {

    if (err) {
      throw err;
    }

    // rendering engine
    app.views({
      defaultExtension: 'ng2.html',
      engines: {
        'ng2.html': {
          module: new hapiEngine(),
          compileMode: 'async'
        }
      },
      relativeTo: __dirname,
      path: path.join(ROOT, 'examples')
    });

  });

angular2-hapi-engine

Universal (isomorphic) javascript support for Angular2

MIT
Latest version published 8 years ago

Package Health Score

59 / 100
Full package analysis

Popular angular2-hapi-engine functions

Similar packages