// DecentCMS (c) 2014 Bertrand Le Roy, under MIT. See LICENSE.txt for licensing details.
'use strict';

module.exports = function titleTemplate(title, renderer) {
  renderer.write('<h1>');
  renderer.writeEncoded(title.text);
  renderer.writeLine('</h1>');
};
@@ -171,19 +171,20 @@
 rer.
-write
+startTag
 ('
-%3C
 h1
-%3E
 ');%0A
@@ -235,25 +235,15 @@
 rer.
-writeLine('%3C/h1%3E'
+endTag(
 );%0A%7D

Use RenderStream helper methods in title view.