1.1.1 • Published 7 years ago

ft-n-tag-preposition v1.1.1

Weekly downloads
9
License
-
Repository
-
Last release
7 years ago

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>
1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago