UNPKG

grunt-readme

Version:

Grunt plugin for generating a README from templates, including an optional table of contents. No Gruntfile config is necessary, just choose a starter template and you'll be ready to go.

15 lines 417 B
{% if (changelog) { _.each(changelog, function(details, version) { var date = details.date; if (date instanceof Date) { date = grunt.template.date(new Date(date.getTime() + date.getTimezoneOffset() * 60000), 'yyyy-mm-dd'); } print('\n * ' + [ date, version, details.changes.join(' '), ].join('\u2003\u2003\u2003')); }); } else { %} _(Nothing yet)_ {% } %}