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:     return f;
    }
  
    void _build(String filename, String template, Map data) {
      String content = render(template, data,
          partial: _partial,
          assumeNullNonExistingProperty: false,
          errorOnMissingProperty: true);
      _writeFile(filename, content);
    }
  
  
negative.code: import 'model.dart';
  import '../generator.dart';
  
  typedef String TemplateRenderer(context, {
    bool assumeNullNonExistingProperty,
    bool errorOnMissingProperty
  });
  
  class HtmlGenerator extends Generator {
    final String _url;
    final List<String> _htmlFiles = [];
  