Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

punch

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

punch

Generate static sites with mustache templates & json

  • 0.0.7-beta
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
decreased by-44.59%
Maintainers
1
Weekly downloads
 
Created
Source

Punch

An easy way to generate static sites with Mustache templates & JSON

NOTE: I will update the README with more elaborative details and examples.

Installation

  • Download and Install Node.js.

    http://nodejs.org/#download

  • Install npm

    curl http://npmjs.org/install.sh | sh

  • Then run npm intall punch

Usage

Go inside your site's directory and then run punch to generate the output.

If you got a config.json file inside the site's directory its configurations will be used to generate the site. Alternatively, you can provide a path to custom configuration file when running punch (eg. punch path/to/config)

If no configuration found, punch will use the default configurations. According to default configurations, you expect to have templates and contents directories and output will be written to public directory.

Sample

Checkout the sample available at /sample to understand the directory structure and configurations.

Conventions

Templates should be available in mustache format. Other formats are copied directly without going through the renderer.

Content should be either in JSON format or markdown. Markdown is converted to a JSON value with the file name as the key.

Punch will render each template by fetching the relavant content. It moves the rendered file into output directory (preserving the directory structure). Uses .html (or what's specified in the config file) as the default extension (eg. index.mustache -> index.html)

Issues & Suggestions

Please report any bugs or feature requests here: http://github.com/laktek/punch/issues/

Keywords

FAQs

Package last updated on 02 Apr 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc