New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diet template block default implementation. #905

Closed
vuaru opened this Issue Nov 27, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@vuaru

vuaru commented Nov 27, 2014

Currently, diet template blocks cannot have a default implementation while in jade they can.

Ie.
layout.dt:

html

body
 block hello
  p world <-- error

page.dt:

extends layout

block hello
  p not world

Gives:

Child elements for 'include' are not supported.

(Which btw is also a slightly odd error, since it's extends, not include.)

@s-ludwig

This comment has been minimized.

Show comment
Hide comment
@s-ludwig

s-ludwig Mar 9, 2015

Member

Implemented by c5d8991. The "prepend" mode is also supported:

extends layout

prepend hello
  p hello

->

<body>
  <p>hello</p>
  <p>world</p>
</body>
Member

s-ludwig commented Mar 9, 2015

Implemented by c5d8991. The "prepend" mode is also supported:

extends layout

prepend hello
  p hello

->

<body>
  <p>hello</p>
  <p>world</p>
</body>

@s-ludwig s-ludwig closed this Mar 9, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment