tasks/markdown.js
function getTemplateContext(file) {

      var sourceFile = grunt.file.read(file),
        hasTemplateContext = checkTemplateContext(sourceFile),
        pattern = new RegExp('(' + options.contextBinderMark + ')(.*?)(' + options.contextBinderMark + ')', 'g'),
        contextArray;

      if (!hasTemplateContext) { 
        return;
      }
      contextArray = sourceFile.match(pattern);
      setTemplateContext(contextArray);
    }
function getTemplateContext(file) {

      var sourceFile = grunt.file.read(file),
        hasTemplateContext = checkTemplateContext(sourceFile),
        pattern = new RegExp('(' + options.contextBinderMark + ')(.*?)(' + options.contextBinderMark + ')', 'g'),
        contextArray;

      if (!hasTemplateContext) { 
        return;
      }
      contextArray = sourceFile.match(pattern);
      setTemplateContext(contextArray);
    }
function getTemplateContext ( file ) { var sourceFile = grunt . file . read ( file ) , hasTemplateContext = checkTemplateContext ( sourceFile ) , pattern = new RegExp ( '(' + options . contextBinderMark + ')(.*?)(' + options . contextBinderMark + ')' , 'g' ) , contextArray ; if ( ! hasTemplateContext ) { return ; } contextArray = sourceFile . match ( pattern ) ; setTemplateContext ( contextArray ) ; }
Collect context items
Collect context items