(Go: >> BACK << -|- >> HOME <<)

Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Financial-Times/o-tweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweet module

This module is now deprecated

This is an Origami module that renders a tweet in FT style.

Data properties listed in the template follow Twitter's response data model for the statuses/show API call with the following exceptions to support Mustache's logicless template syntax:

  • entities.media entries with a type property of 'photo' should be mapped to the photos collection
  • entities.urls entires with an expanded_url referring to a YouTube video page should be mapped to the videos collection, where an additional video_id property should be set to the extracted ID of the video.
  • text should be parsed for links and turned into HTML
  • retweet_count and favorite_count should be formatted appropriately

Licence

This software is published by the Financial Times under the MIT licence.