Commit 1fef1df8 authored by Nirina Malard's avatar Nirina Malard

software/html5as-base: add index.html template

parent aa62308e
......@@ -12,6 +12,7 @@ dash_location = {{ dash_location }}
template_nginx_conf = {{ template_nginx_conf_target }}
template_mime_types = {{ template_mime_types_target }}
template_launcher = {{ template_launcher_target }}
template_index_html = {{ template_index_html_target }}
[instance-html5as]
recipe = slapos.recipe.template:jinja2
......
......@@ -128,6 +128,18 @@ context =
recipe = plone.recipe.command
command = rm -r ${html5as:docroot}/*; echo "Hello World!" > ${html5as:docroot}/index.html
[downloader]
recipe = plone.recipe.command
command = rm -r ${html5as:docroot}/*; cp ${default_index_html:rendered} ${html5as:docroot}/
[default_index_html]
recipe = slapos.recipe.template:jinja2
template = {{ parameter_list['template_index_html'] }}
rendered = ${directory:srv}/index.html
title = {{ parameter_dict['title'] }}
context =
key title :title
# Publish nginx address
[publish-connection-information]
recipe = slapos.cookbook:publish
......
......@@ -27,7 +27,7 @@ recipe = slapos.recipe.template:jinja2
output = ${buildout:directory}/template.cfg
url = ${:_profile_base_location_}/${:filename}
filename = instance.cfg.in
md5sum = 3ccb7ac5e72e61e29a7fd20a6a1946c7
md5sum = 1be13f7f98eb741a82414cd75bf41e6f
context =
section buildout buildout
key nginx_location nginx:location
......@@ -36,13 +36,14 @@ context =
key template_mime_types_target template_mime_types:target
key template_launcher_target template_launcher:target
key template_instance_html5as_target instance_html5as:target
key template_index_html_target template_index_html:target
# Download instance_html5as.cfg.in
[instance_html5as]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
_update_hash_filename_ = instance_html5as.cfg.in
md5sum = b6dda2a6ced314f146d1dc88bcfa7b8c
md5sum = 26b62d36f79f59f8064df3dfc857a801
[template_nginx_conf]
recipe = slapos.recipe.build:download
......@@ -62,6 +63,12 @@ url = ${:_profile_base_location_}/${:_update_hash_filename_}
_update_hash_filename_ = templates/mime_types.in
md5sum = 4ef94a7b458d885cd79ba0b930a5727e
[template_index_html]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:_update_hash_filename_}
_update_hash_filename_ = templates/index.html.in
md5sum = d57cb01df5941e139b02a2f7bdabcdc8
[extra-eggs]
recipe = zc.recipe.egg
eggs =
......
{% if title %}
<h1>{{ title }}</h1>
{% endif %}
<p>Hello World</p>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment