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 8022531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:17:20+00:00 2026-06-04T22:17:20+00:00

I have the following layout.jade file: !!! 5 html head body #left #leftbody #center

  • 0

I have the following layout.jade file:

!!! 5
html
    head
    body
        #left
            #leftbody
        #center
            #centerbody
                #container!= body
        #right
            #rightbody

And I have the following route.js file:

app.get('/',
    function(req, res) {
        Post.find({}).execFind(
            function(err, data) {
                res.render('post/index', {
                    posts: data
                });
        });
});

I’m currently rendering #centerbody based on links in the #leftbody. I’m wondering how I could use express to populate the #rightbody. Currently I’m populating a ul in #rightbody using an ajax call in document.ready but was wondering if there was another way using express.

  • 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-04T22:17:22+00:00Added an answer on June 4, 2026 at 10:17 pm

    I would strongly advise you to have a look at Jade includes, or, even better, Jade template inheritance

    This would allow you to keep, for all your pages, the common parts of the page in separated files. And allow easier maintenance. This is definitely the thing to do.

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

Sidebar

Related Questions

I have following HTML layout <html> <head> <title></title> <meta http-equiv=Content-Type content=text/html; charset=UTF-8> <style type=text/css>
I have the following XML layout file, HELPME.XML <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent
I have following layout: <h:body> <p:outputPanel layout=block id=page style=width:100%;height:100%;> <h:panelGroup layout=block> <p:layout fullPage=true> <p:layoutUnit
i have following HTML structure: <div class=container> <div class=sidebar></div> <div class=content></div> <div class=subscript></div> </div>
I have the following layout: https://dustinhendricks.com/breastfest/index.html In ie7 ( or ie8 in Compatibility View
I have the following layout: <div style=float:right ...>Contents</div> <table>contents</table> I want that the div
I have the following Layout (called: MyView.ctp) in /app/view/layouts <!DOCTYPE html> <html xmlns=http://www.w3.org/1999/xhtml> <head>
I have following layout: 4 rounded corners background and two panels (left panel and
I have the following layout in a sidebar: <div class=sidebar> <div class=center> <div>button one</div>
I have the following layout in my xml file: <RelativeLayout android:layout_width=fill_parent android:layout_height=fill_parent> <FrameLayout android:id=@+id/logoLayout

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.