template/util/rst-mixin.js
function titlecase() {
  return function(data, render) {
    var text = render(data);
    if (text.length === 0) {
      return text;
    }

    return text[0].toUpperCase() + text.substring(1);
  };
}
function titlecase() {
  return function(data, render) {
    var text = render(data);
    if (text.length === 0) {
      return text;
    }

    return text[0].toUpperCase() + text.substring(1);
  };
}
function titlecase ( ) { return function ( data , render ) { var text = render ( data ) ; if ( text . length === 0 ) { return text ; } return text [ 0 ] . toUpperCase ( ) + text . substring ( 1 ) ; } ; }
Mustache lambda that upercase the first letter
of each word in the given data.

@return {function} the titlecase helper function
Mustache lambda that upercase the first letter of each word in the given data .