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

generator-jade

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-jade

A yo generator for jade projects

  • 0.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Generator-jade

NPM version

A generator for Yeoman to use jade for templating.

Also: you can choose to use stylus as css preprocessor. So no ruby dependencies for this generator.

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Install the generator: npm install -g generator-jade or use the yo command and follow instructions.
  • Run: yo jade

Usage

This generator is powered by the jade template engine. There is just jQuery included. No other fancy js and css frameworks. But you can add them very easily. Just update your bower file and run bower install.

As css preprocessor you can choose between sass/comapss and stylus.

All jade files are supposed to be located under app/jade/. All .jade files with an _underscore are treated as partials and not rendered directly. Everything else is a jade file that is supposed to be a page. Create subpages in folders with own index.jade files including _default_layout.jade or you own _layout.jade in /layouts.

And this is how i thought about the directory structure of the jade directory

jade
|-- index.jade
|-- layouts
|   |-- _default_layout.jade
|   +-- partials
|       |-- _html-header.jade
|       |-- _footer.jade
|       +-- _nav.jade
|-- page1
|  |-- index.jade
|       |-- partials
|           |-- _partial.jade
+ - page2
   |-- index.jade
        |-- partials
            |-- _partial.jade

License

MIT License

Keywords

FAQs

Package last updated on 03 Dec 2013

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