anchor.diff:      f.writeAsStringSync(content);
     }
   
  -  static String _loadTemplate(String templatePath) {
  +  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));
  -    String contents = tmplFile.readAsStringSync();
  -    return contents;
  +      new File(path.join(script.parent.parent.path, templatePath));
  +    return tmplFile.readAsStringSync();
  +  }
  +
  +  static String _loadPartial(String templatePath) {
  +    return _getTemplateFile(templatePath);
     }
   }
   
  
positive.code: 
    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 =
        _loadTemplate('templates/library.html');
    static final String classTemplate = _loadTemplate('templates/class.html');
    static final String functionTemplate =
        _loadTemplate('templates/function.html');
    static final String methodTemplate =
        _loadTemplate('templates/method.html');
    static final String constructorTemplate =
        _loadTemplate('templates/constructor.html');
  
    static final Map<String, String> _partialTemplates = {};
  
    static String _partial(String name) {
      return _partialTemplates.putIfAbsent(name, () => _loadTemplate('templates/_$name.html'));
    }
  
    HtmlGenerator(this._url)
  
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 = [];
  