% allScripts = [] -%> <% allStyles = [] -%> <% var ctx = public -%> <% var n = current.path.length -%> <% for (var i in current.path) { -%> <% var path = current.path[i] -%> <% if (ctx._data) { -%> <% if (ctx._data.scripts || ctx._data._scripts) { -%> <% allScripts = allScripts.concat(ctx._data.scripts || ctx._data._scripts) -%> <% } -%> <% if (ctx._data.styles || ctx._data._styles) { -%> <% allStyles = allStyles.concat(ctx._data.styles || ctx._data._styles) -%> <% } -%> <% if (ctx._data[path] && ctx._data[path].scripts) { -%> <% allScripts = allScripts.concat(ctx._data[path].scripts) -%> <% } -%> <% if (ctx._data[path] && ctx._data[path].styles) { -%> <% allStyles = allStyles.concat(ctx._data[path].styles) -%> <% } -%> <% } -%> <% ctx = ctx[path] -%> <% } -%>
<% if (typeof title != 'undefined') { -%>