Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:36:11+00:00 2026-06-12T15:36:11+00:00

I have been in the practice of using partials across my applications for some

  • 0

I have been in the practice of using partials across my applications for some time now across a number of different frameworks; I am baffled by Jade’s implementation, or my incorrect usage, and would like to get other exploiter’s experiences and any corrections to my understanding.

Folder structure:

$ cd <app_root>/views
$ ls
  myHoverToolTip.jade
  layout.jade

Caller:

httpJadeViewerRsp = (req, res) -> res.render('myHoverToolTip.jade', { variable: 'here' })

myHoverToolTip.jade

extends layout

block myHoverToolTip
  .some-div
    h1 Awesome-O Rocks

layout.jade

<...bunch of jade markup...>
.div
  block myHoverToolTip
    h5 Content to remove

This works in a small number of use-cases where you are just providing a page and are looking for a standard way to provide a layout. However deviating from this and using partials in a more module fashion to DRY things up and you find this implementation of extends/block leaves me scratching my head. I want to break my tool-tip into a partial to be reused across a data grid (of course passing a number of variables to the partial, so forget about includes), this implementation forbids me from having this ability. Can anyone provide me further insight, correct my usage, or direct me to a better NodeJs-ready templating library that will work with Express 3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:36:13+00:00Added an answer on June 12, 2026 at 3:36 pm

    As of Aug 2012 and Express 3, “partials” support is removed, but the functionality is still available via the expression “include [yourtemplatename]” without the quotes or brackets.

    An alternative to Jade which I have also found useful is the EJS templating, which is a little more ASP.NET / JSTL-like.

    Edit: In both cases, parent contexts and variables available are accessible by includes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been a web developer for some time now using ASP.NET and C#,
Some Background I have been using Git for a while now. The projects that
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
I have been using namespaces to package my JavaScript code. In some of the
I have been using Ruby for a while now and I find, for bigger
I have been using Netbeans for several months now and like it a lot.
compiling with gcc C99 I have been using enums for a while now. However,
I have been making applications for Mac with Objective-C for about a year now
What is the best practice for submitting forms in ASP.NET MVC? I have been
I have been tracking emails for years using a "beacon" image and for those

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.