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

generator-harp-browserify

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-harp-browserify

Yeoman generator

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

generator-harp-browserify Build Status

Yeoman generator

Generator for creating static sites based on Harp that have Browserify included.

It uses grunt as the task runner. It also allows to use jslint or jshint.

Nested Layouts

Read about nested layouts on the harp site.

Resumed, the problem is that by default, you have a _layout per directory, and on that file, you have to include the <head>, doctype, etc and also, the basic design of that route.

Using nested layouts, you can have a "base layout" with the doctype, <head>, etc. and then a "sublayout" that contains specific details of the route directory.

This generator already includes code to have nested layouts, called here sublayouts.

By default, you have a _layout.jade (which is based on html5-boilerplate).

That _layout.jade will look for a _sublayout.jade file on the current directory.

That way, you only need to create a _sublayout.jade file per directory, with the specific details of that directory and every request will reuse the default _layout.jade!

That way is even more DRY.

Getting Started

Yeoman Generators

To install generator-harp-browserify from npm, run:

$ npm install -g generator-harp-browserify

Finally, initiate the generator:

$ yo harp-browserify

License

MIT

Keywords

FAQs

Package last updated on 24 Aug 2016

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