O'Reilly logo

Web Development with Jade by Sean Lang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Organizing Jade Projects

Now that you know how to use all the things that Jade can do, here's when you should use them.

Jade is pretty flexible when it comes to organizing projects; the language itself doesn't impose much structure on your project. However, there are some conventions you should follow, as they will typically make your code easier to manage. This chapter will cover those conventions and best practices.

General best practices

Most of the good practices that are used when writing HTML carry over to Jade. Some of these include the following:

  • Using a consistent naming convention for ID's, class names, and (in this case) mixin names and variables
  • Adding alt text to images
  • Choosing appropriate tags to describe content and page structure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required