anchor.diff:  
     final String generatedOn;
   
  -  // TODO: fix this to be a single map, just like _partialTemplates
  -  static final String indexTemplate = _loadTemplate('templates/index.html');
  -  static final String libraryTemplate =
  +  static final TemplateRenderer indexTemplate = _loadTemplate('templates/index.html');
  +  static final TemplateRenderer libraryTemplate =
         _loadTemplate('templates/library.html');
  -  static final String classTemplate = _loadTemplate('templates/class.html');
  -  static final String functionTemplate =
  +  static final TemplateRenderer classTemplate = _loadTemplate('templates/class.html');
  +  static final TemplateRenderer functionTemplate =
         _loadTemplate('templates/function.html');
  -  static final String methodTemplate =
  +  static final TemplateRenderer methodTemplate =
         _loadTemplate('templates/method.html');
  -  static final String constructorTemplate =
  +  static final TemplateRenderer constructorTemplate =
         _loadTemplate('templates/constructor.html');
   
     static final Map<String, String> _partialTemplates = {};
   
     static String _partial(String name) {
  -    return _partialTemplates.putIfAbsent(name, () => _loadTemplate('templates/_$name.html'));
  +    return _partialTemplates.putIfAbsent(name, () => _loadPartial('templates/_$name.html'));
     }
   
     HtmlGenerator(this._url)
  
positive.code: import 'model.dart';
  import '../generator.dart';
  
  class HtmlGenerator extends Generator {
    final String _url;
    final List<String> _htmlFiles = [];
  
negative.code:     f.writeAsStringSync(content);
    }
  
    static TemplateRenderer _loadTemplate(String templatePath) {
      return compile(_getTemplateFile(templatePath), partial: _partial);
    }
  
    static String _getTemplateFile(String templatePath) {
      File script = new File(Platform.script.toFilePath());
      File tmplFile =
        new File(path.join(script.parent.parent.path, templatePath));
      return tmplFile.readAsStringSync();
    }
  
    static String _loadPartial(String templatePath) {
      return _getTemplateFile(templatePath);
    }
  }
  
  