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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:01:14+00:00 2026-06-13T11:01:14+00:00

Please, consider the following trivial jade template: form block balance block address_info block additional_info

  • 0

Please, consider the following trivial jade template:

form
  block balance
  block address_info
  block additional_info
  block payment_info

block balance
  | a

block address_info
  | b

block additional_info
  | c

block payment_info
  | d

First of all, it does not work (otherwise I would not be asking this question).

The produced HTML is simply <form></form>.

What I want is to define a layout and then override the layout blocks all in the same template file.
Is it possible?

P.S.
I know I can throw the layout in a different file and then extend it in yet another. However, my layout is specific to just one view, it is a waste to define a separate file for it.

  • 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-13T11:01:16+00:00Added an answer on June 13, 2026 at 11:01 am

    Got it, what I am looking for is called mixin, which are like functions.

    So, my trivial example should have been written like so:

    mixin balance
      | a
    
    mixin address_info
      | b
    
    mixin additional_info
      | c
    
    mixin payment_info
      | d
    
    form
      mixin balance
      mixin address_info
      mixin additional_info
      mixin payment_info
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please consider the following view: <p>Count <span data-bind=text: unreadCount()>&nbsp;</span></p> <div data-bind='template: { name: conversationTemplate,
Please, consider the following trivial example: http://jsfiddle.net/mark69_fnd/vtLrt/ As you can see, it prints: A1
Please consider the following scenario. I have a form with a property: class MyForm
Please consider the following code. struct foo { }; template<typename T> class test {
Please consider the following signup: <form wicket:id=form> <div wicket:id=fooList> <input wicket:id=fooList.quxField type=text size=10/> </div>
Please consider the following non-working HTML document: <html> <body> <form action= method=GET onsubmit=return f(this);>
Please consider the following code: #include <iostream> #include <typeinfo> template< typename Type > void
Please consider the following code, <form action=index.php method=post name=adminForm enctype=multipart/form-data> <input type=hidden name=showtime[] id=showtime_1
Please consider following code: 1. uint16 a = 0x0001; if(a < 0x0002) { //
Please consider the following code: mpz_t x, n, out; mpz_init_set_ui(x, 2UL); mpz_init_set_ui(n, 7UL); mpz_init(out);

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.