lib/Thulium/Parser.js
function( callback ){
      var tm = this;

      setTimeout(function () {
        var returnValue;

        //check for template existance.
        if (tm.template) {
          tm._tokenize();
          returnValue = tm._tokens;

          // execute callback.
          if (callback) {
            callback( returnValue );
          }
        } else {
          throw "ParseError: No template to parse.";
        }
      }, 0);
    }
function( callback ){
      var tm = this;

      setTimeout(function () {
        var returnValue;

        //check for template existance.
        if (tm.template) {
          tm._tokenize();
          returnValue = tm._tokens;

          // execute callback.
          if (callback) {
            callback( returnValue );
          }
        } else {
          throw "ParseError: No template to parse.";
        }
      }, 0);
    }
function ( callback ) { var tm = this ; setTimeout ( function ( ) { var returnValue ; //check for template existance. if ( tm . template ) { tm . _tokenize ( ) ; returnValue = tm . _tokens ; // execute callback. if ( callback ) { callback ( returnValue ) ; } } else { throw "ParseError: No template to parse." ; } } , 0 ) ; }
Creates the token array and sends them to a callback
Creates the token array and sends them to a callback