code: function generateTutorial(title, tutorial, fileName, originalFileName, isHtmlTutorial) {
          var tutorialData = {
              docs: null, // If there is no "docs" prop, Erros in layout.tmpl. (For left-nav member listing control)
              isTutorial: true,
              env: env,
              title: title,
              header: tutorial.title,
              children: tutorial.children,
              isHtmlTutorial: isHtmlTutorial,
              package: find({kind: 'package'})[0]
          };
  
          if (isHtmlTutorial) {
              _.extend(tutorialData, generateHtmlTutorialData(tutorial, fileName, originalFileName));
          } else {
              tutorialData.content = tutorial.parse();
          }
  
          var tutorialPath = path.join(outdir, fileName),
              html = view.render('tutorial.tmpl', tutorialData);
  
          // yes, you can use {@link} in tutorials too!
          html = helper.resolveLinks(html); // turn {@link foo} into <a href="foodoc.html">foo</a>
  
          fs.writeFileSync(tutorialPath, html, 'utf8');
      }
docs: TODO: move the tutorial functions to templateHelper.js