How to use the folio.serve function in folio

To help you get started, we’ve selected a few folio 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 noveogroup / backbone.iobind / example / routes / index.js View on Github external
path.join(__dirname, '..', 'views/templates/form.jade'),
  path.join(__dirname, '..', 'views/templates/item.jade')
], {
  compilers: {
    jade: function (name, source) {
      return 'template[\'' + name + '\'] = ' +
        jade.compileClient(source, {
          client: true,
          compileDebug: false
        }) + ';';
    }
  }
});

// serve using express
exports.templatejs = folio.serve(templateJs);
github noveogroup / backbone.iobind / example / routes / index.js View on Github external
* backbone
 * backbone.iosync
 * backbone.iobind
 */

var vendorJs = new folio.Glossary([
  //path.join(__dirname, '..', 'public', 'js', 'jquery.min.js'),
  require.resolve('jquery/dist/jquery.js'),
  require.resolve('underscore/underscore.js'),
  require.resolve('backbone/backbone.js'),
  path.join(__dirname, '..', '..', 'dist', 'backbone.iosync.js'),
  path.join(__dirname, '..', '..', 'dist', 'backbone.iobind.js')
]);

// serve using express
exports.vendorjs = folio.serve(vendorJs);

/**
 * Template Javascript Package
 *
 * We are going to use pre-compiled
 * jade on the client-side.
 */

var templateJs = new folio.Glossary([
  require.resolve('jade/runtime.js'),
  path.join(__dirname, '..', 'views/templates/js/header.js'),
  path.join(__dirname, '..', 'views/templates/form.jade'),
  path.join(__dirname, '..', 'views/templates/item.jade')
], {
  compilers: {
    jade: function (name, source) {

folio

A customizable test framework to build your own test frameworks. Foundation for the [Playwright test runner](https://github.com/microsoft/playwright-test).

Apache-2.0
Latest version published 4 years ago

Package Health Score

42 / 100
Full package analysis