lib/middleman-sculptor/template/source/layouts/isolated.slim in middleman-sculptor-0.20 vs lib/middleman-sculptor/template/source/layouts/isolated.slim in middleman-sculptor-0.21

- old
+ new

@@ -1,23 +1,26 @@ +- id = current_resource.metadata.options.id +- current_model = current_resource.metadata.models[id] + doctype html html head meta charset='utf-8' title = page_title meta name='viewport' content='width=device-width' - = yield_content :stylesheets - - if current_resource.metadata.options.iframe - = include_stylesheets(current_page.data.stylesheets || current_page.data.stylesheet) + - if current_model[:stylesheet] + = include_stylesheets(current_model[:stylesheet]) + - else + = yield_content :stylesheets + - if current_resource.metadata.options.iframe + = include_stylesheets(current_page.data.stylesheets || current_page.data.stylesheet) - if current_resource.data.isolation_styles style = current_resource.data.isolation_styles body class="#{yield_content(:body_class)}" - - id = current_resource.metadata.options.id - - current_model = current_resource.metadata.models[id] - = current_model.html = javascript_include_tag 'iframe-js' = yield_content :javascripts - if current_resource.metadata.options.iframe - = include_javascripts(current_page.data.javascripts || current_page.data.javascript) + = include_javascripts(current_model[:javascript] || current_page.data.javascripts || current_page.data.javascript) = yield_content :post_body