A
A
Alexander Ivanov2015-05-30 02:44:24
Node.js
Alexander Ivanov, 2015-05-30 02:44:24

Why don't you work inlude in jade?

Where do I connect:

extends layout
include nav.jade
block content
  h1= title
  p Welcome to #{title}
  form(action='/',method='post' )
    input(type='text')
    input(type='submit')

What I connect:
// Jade
ul
    li 
      a(href="/old")|old
    li  
      a(href="/new")|new
    li  
      a(href='/')|hom

index and nav are in the same folder, but the output is nothing.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question