tasks/compile-handlebars.js
function(data, dontParse) {
    // grunt.file chokes on objects, so we check for it immiedietly
    if (typeof data === 'object') {
      return data;
    }

    // `data` isn't an object, so its probably a file
    try {
      // alce allows us to parse single-quote JSON (which is tehcnically invalid, and thereby chokes JSON.parse)
      data = grunt.file.read(data);
      if (!dontParse) {
        data = alce.parse(data);
      }
    }
    catch (e) {}

    return data;
  }
function(data, dontParse) {
    // grunt.file chokes on objects, so we check for it immiedietly
    if (typeof data === 'object') {
      return data;
    }

    // `data` isn't an object, so its probably a file
    try {
      // alce allows us to parse single-quote JSON (which is tehcnically invalid, and thereby chokes JSON.parse)
      data = grunt.file.read(data);
      if (!dontParse) {
        data = alce.parse(data);
      }
    }
    catch (e) {}

    return data;
  }
function ( data , dontParse ) { // grunt.file chokes on objects, so we check for it immiedietly if ( typeof data === 'object' ) { return data ; } // `data` isn't an object, so its probably a file try { // alce allows us to parse single-quote JSON (which is tehcnically invalid, and thereby chokes JSON.parse) data = grunt . file . read ( data ) ; if ( ! dontParse ) { data = alce . parse ( data ) ; } } catch ( e ) { } return data ; }
Gets the final representation of the input, whether it be object, or string
Gets the final representation of the input whether it be object or string