index.js
function Temper(options) {
  if (!this) return new Temper(options);
  options = options || {};

  //
  // We only want to cache the templates in production as it's so we can easily
  // change templates when we're developing.
  //
  options.cache = 'cache' in options
    ? options.cache
    : process.env.NODE_ENV !== 'production';

  this.installed = Object.create(null);   // Installed module for extension cache.
  this.required = Object.create(null);    // Template engine require cache.
  this.compiled = Object.create(null);    // Compiled template cache.
  this.timers = new TickTock(this);       // Keep track of timeouts.
  this.file = Object.create(null);        // File lookup cache.
  this.cache = options.cache;             // Cache compiled templates.
}
function Temper(options) {
  if (!this) return new Temper(options);
  options = options || {};

  //
  // We only want to cache the templates in production as it's so we can easily
  // change templates when we're developing.
  //
  options.cache = 'cache' in options
    ? options.cache
    : process.env.NODE_ENV !== 'production';

  this.installed = Object.create(null);   // Installed module for extension cache.
  this.required = Object.create(null);    // Template engine require cache.
  this.compiled = Object.create(null);    // Compiled template cache.
  this.timers = new TickTock(this);       // Keep track of timeouts.
  this.file = Object.create(null);        // File lookup cache.
  this.cache = options.cache;             // Cache compiled templates.
}
function Temper ( options ) { if ( ! this ) return new Temper ( options ) ; options = options || { } ; // // We only want to cache the templates in production as it's so we can easily // change templates when we're developing. // options . cache = 'cache' in options ? options . cache : process . env . NODE_ENV !== 'production' ; this . installed = Object . create ( null ) ; // Installed module for extension cache. this . required = Object . create ( null ) ; // Template engine require cache. this . compiled = Object . create ( null ) ; // Compiled template cache. this . timers = new TickTock ( this ) ; // Keep track of timeouts. this . file = Object . create ( null ) ; // File lookup cache. this . cache = options . cache ; // Cache compiled templates. }
Temper compiles templates to client-side compatible templates as well as it's
server side equivalents.

@constructor
@param {Object} options Temper configuration.
@api public
Temper compiles templates to client - side compatible templates as well as it s server side equivalents .