Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pengwynn/backtweets_helper
Rails helper for Backtweets widgets
https://github.com/pengwynn/backtweets_helper
Last synced: 1 day ago
JSON representation
Rails helper for Backtweets widgets
- Host: GitHub
- URL: https://github.com/pengwynn/backtweets_helper
- Owner: pengwynn
- License: mit
- Created: 2009-12-02T18:29:28.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2009-12-02T20:14:37.000Z (about 15 years ago)
- Last Synced: 2024-11-24T23:06:21.053Z (2 months ago)
- Language: Ruby
- Homepage: http://bt.io/BINb
- Size: 74.2 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
README
# Backtweets Helper
Simple Rails helper to write Backtweets widgets for those that don't like to get their hands dirty with JavaScript.
## Installation
script/plugin install git://github.com/pengwynn/backtweets_helper.git
## Usage
### Tweetcount
<-- Simple count -->
<%= backtweets_count -%>
<-- Compact size -->
<%= backtweets_count(:size => 'small', :src => 'RT @pengwynn') -%>
# full options http://www.backtype.com/widgets/tweetcount
# Parameter Default Description
# ___________ __________ ________________
#
# url Current URL The URL to measure tweets for
# title Title of current page The title of the page for retweets
# src Leading text for retweets
# via true If tweets contain '(via @BackType)'
# links false If links should be opened in new windows
# size "large" Size of button ("large" or "small")
# api_key Awe.sm API Key for custom URL shortener
# short_url Generated (bt.io) Specify the pre-shortened URL that you would like to use
# background Button background color (e.g. 'FFFFFF')
# border Button border color (e.g. 'CCCCCC')
# text Button text color (e.g. '000000')
### Comments widget<%= backtweets_comments('pengwynn') -%>
### Blogroll widget<%= backtweets_blogroll('pengwynn') -%>
### Search widget<%= backtweets_search('iphone') -%>
Copyright (c) 2009 [Wynn Netherland](http://wynnnetherland.com), released under the MIT license