We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi Vadim,
Is there a way to put default block content and if child has this block then it will overrule it?
Example: layout.ect
<% if blockExists('menu1') : %> <% content 'menu1' %> <% else : %> <ul class="menu_default"><li>item</li></ul> <% end %>
child.ect
<% extend layout.ect %> <% block 'menu1' %> <ul class="menu1"><li>item</li></ul> <% end %>
The text was updated successfully, but these errors were encountered:
I was looking for the same thing
Sorry, something went wrong.
You can predefine default block content like this:
layout.ect
<% block 'menu1' : %> default content <% end %> <% content 'menu1' %>
<% extend 'layout' %> <% block 'menu1' : %> redefined <% end %>
No branches or pull requests
Hi Vadim,
Is there a way to put default block content and if child has this block then it will overrule it?
Example:
layout.ect
child.ect
The text was updated successfully, but these errors were encountered: