Skip to content

block syntax stops working #44

@flamingtop

Description

@flamingtop

Hi, I'm using express 3.4.7. Before I imported express-partials, I used blocks to organize my views,

in layout.jade

body
  block content

in index.jade

extends layout
block content
  ....

Results in a blank page only with layout.jade's content rendered but not index.jade's. Does express-partial excludes blocks?

Now I have to use

body
  != body

which seems to work with partials only needed to modify index.jade to

include layout
  ....

The problem is if I put a bit more into the layout, for example

body
  h1 hello
  != body

h1 hello turns out to be rendered twice.

I need partials because I needed to use them dynamically

- partial( /* dynamic view name */ ) 

which through "include" or "block" cant be achieved. Is there a way to get the good stuff from both express 3 and express-partials?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions