@@ -52,21 +52,20 @@ def template(app):
52
52
53
53
def clear_static_generated_templates ():
54
54
"""
55
- Our various frontend applications use the wrapper.html.erb and
56
- header_footer_only.html.erb templates. They get these templates
57
- using the Slimmer gem. And this gem fetches these templates from
58
- the static application, located using the ASSET_ROOT.
55
+ Our various frontend applications use the wrapper.html.erb,
56
+ header_footer_only.html.erb and core_layout.html.erb layout templates.
57
+ They get these templates using the Slimmer gem, which fetches
58
+ these templates from the static application, located using ASSET_ROOT.
59
59
60
- When static is deployed there are no generated wrapper.html.erb or
61
- header_footer_only.html.erb templates. At the first request of
62
- either of these, the application will generate the template. The
63
- template will be placed in the public/template directory. From
64
- that point on, the templates are served by nginx.
60
+ When static is deployed there are no generated layout templates
61
+ on static At the first request to one these, static will generate
62
+ the template. The template will be placed in the public/template
63
+ directory. From that point on, the templates are served by nginx.
65
64
66
65
This function clears the public/template directory to force it to
67
66
be regenerated to include the emergency campaign.
68
67
"""
69
- for template in ('wrapper.html.erb' , 'header_footer_only.html.erb' ):
68
+ for template in ('wrapper.html.erb' , 'header_footer_only.html.erb' , 'core_layout.html.erb' ):
70
69
sudo ('rm /var/apps/static/public/templates/{}' .format (template ))
71
70
72
71
0 commit comments