1.1.1 • Published 7 years ago
ft-n-tag-preposition v1.1.1
n-tag-preposition
Generates the right preposition for a given content tag based on it's taxonomy (eg. Author, Brand, Section, Genre, etc.).
Example usage
With a content tag
const addTagPreposition = require('ft-n-tag-preposition');
addTagPreposition(tag);
Preposition will be return as a new property within the existing tag object (tag.preposition
).
Comes with leading space to aid ease of use in templates.
Mustache template
<h1>Latest News{{tag.preposition}} {{tag.prefLabel}}</h1>