/*global fontomas, _, Handlebars*/

;(function (global) {
  "use strict";


  var fontomas = window.fontomas = {}, tpl_cache = {};


  fontomas.models = {};
  fontomas.ui     = {};


  fontomas.config = {
    preview_glyph_sizes:  [24, 16]
  };


  // TODO: on release - change fontomas.debug to `false`
  //       as it's needed for developers only

  // usage: index.html#debug
  fontomas.debug = '#debug' === window.location.hash;

  // debug logger
  fontomas.logger = {};

  // logger does nothing by default
  fontomas.logger.assert =
  fontomas.logger.error  =
  fontomas.logger.debug  = function () {};

  if (fontomas.debug) {
    fontomas.logger.assert = console.assert;
    fontomas.logger.error  = console.error;
    fontomas.logger.debug  = console.debug ? console.debug : console.log;
  }

  fontomas.render = function (id, locals) {
    var $tpl;

    if (!tpl_cache[id]) {
      $tpl = $('[data-tpl-id=' + id + ']').remove();
      tpl_cache[id] = Handlebars.compile($tpl.html());
    }

    return tpl_cache[id](locals || {});
  };

}());

@@ -244,196 +244,8 @@
 ;%0A%0A%0A
-  // TODO: on release - change fontomas.debug to %60false%60%0A  //       as it's needed for developers only%0A%0A  // usage: index.html#debug%0A  fontomas.debug = '#debug' === window.location.hash;%0A%0A
   //
@@ -258,16 +258,16 @@
  logger%0A
+
   fontom
@@ -423,26 +423,79 @@
 %0A%0A  
-if (fontomas.debug
+// change %60false%60 to %60true%60 to enable logger on development%0A  if (false
 ) %7B%0A

Remove fontomas.debug