middleman/middleman-core/fixtures/traversal-app/source/layout.erb

21 lines
448 B
Text
Raw Normal View History

Path: <%= current_page.path %>
2014-07-16 03:01:45 +02:00
Source: <%= current_page.source_file[:full_path].sub(root + "/", "") %>
2011-12-23 21:04:38 +01:00
<% if current_page.parent %>
Parent: <%= current_page.parent.path %>
<% end %>
<% current_page.children.each do |p| %>
Child: <%= p.path %>
<% end %>
<% current_page.siblings.each do |p| %>
Sibling: <%= p.path %>
<% end %>
<% current_page.children.each do |p| %>
<% if p.data %>
2015-03-20 21:58:23 +01:00
Data: <%= p.data.inspect %>
<% end %>
2011-12-23 21:04:38 +01:00
<% end %>