This package has been deprecated

Author message:

This package is no longer maintained

ft-n-tag-preposition

1.1.1 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i ft-n-tag-preposition

Weekly Downloads

3

Version

1.1.1

License

none

Last publish

Collaborators

  • robgodfrey
  • robertboulton
  • seraph2000
  • hamza.samih
  • notlee
  • emmalewis
  • aendra
  • the-ft
  • rowanmanning
  • chee
  • alexwilson