What follows is a excerpt of main application layout in spree_core
(app/views/spree/layouts/spree_application.html.erb):
<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
<head data-hook="inside_head">
<%= render :partial => 'spree/shared/head' %>
</head>
<body class="<%= body_class %>" id="<%= @body_id || 'default' %>"
data-hook="body">
<div class="container">
<%= render :partial => 'spree/shared/header' %>
<div id="wrapper" class="row" data-hook>
...
</div>
<%= render :partial => 'spree/shared/footer' %>
</div>
<%= render :partial => 'spree/shared/google_analytics' %>
</body>
</html>
I'm trying to remove first div (with class "container") with Deface
maintaining its content, i.e. I would like to obtain this:
<!doctype html>
<!--[if lt IE 7 ]> <html class="ie ie6" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 7 ]> <html class="ie ie7" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 8 ]> <html class="ie ie8" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if IE 9 ]> <html class="ie ie9" lang="<%= I18n.locale %>">
<![endif]-->
<!--[if gt IE 9]><!--><html lang="<%= I18n.locale %>"><!--<![endif]-->
<head data-hook="inside_head">
<%= render :partial => 'spree/shared/head' %>
</head>
<body class="<%= body_class %>" id="<%= @body_id || 'default' %>"
data-hook="body">
<%= render :partial => 'spree/shared/header' %>
<div id="wrapper" class="row" data-hook>
...
</div>
<%= render :partial => 'spree/shared/footer' %>
<%= render :partial => 'spree/shared/google_analytics' %>
</body>
</html>
Reading Deface documentation<https://github.com/spree/deface/blob/master/README.markdown>it seems that "replace" action together with "copy" source could be the
right way, but my attempts failed.
It is possible to do what I'm trying to?
Thanks...
--
You received this message because you are subscribed to the Google Groups "Spree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.