UNPKG

hbs-blog

Version:

handlebarjs helper to generate blog pages and navigations

19 lines (15 loc) 352 B
module.exports = formatTags /** * @public * @param {string} input * @param {object} options * @returns {string} */ function formatTags (input, options) { var tags = input.split(',') var htmlTagList = '' tags.forEach(function (value) { htmlTagList = htmlTagList + options.fn({tag: value}) }) return htmlTagList }