Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sample Punch application that shows favorite tweets of a user

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 templates initial commit August 29, 2012
Octocat-spinner-32 LICENSE Added README and LICENSE August 29, 2012
Octocat-spinner-32 README.md Updated the README August 29, 2012
Octocat-spinner-32 config.json initial commit August 29, 2012
Octocat-spinner-32 favtweet_content_handler.js initial commit August 29, 2012
Octocat-spinner-32 site_helpers.js Updated the helper to use the newer API March 12, 2013
README.md

FavTweets

This is a sample app written to demonstrate the capabilities of Punch.

Check how this uses custom content handler to fetch the favorite tweets from the Twitter API. Also, we use a custom helper to set a cookie (to store the selected background image) and render different layouts for homepage and results page.

Also, this uses Handlebars as the template engine instead of the default Mustache template engine.

Open the config.json to see all these customizations.

How to Run

  • Download the code to your machine.

  • Install punch and punch-engine-handlebars.

    npm install -g punch
    npm install punch-engine-handlebars
    
  • Then, inside directory run punch s

  • Now, point your browser to http://localhost:9009.

Image Credits

Something went wrong with that request. Please try again.