initial commit
This commit is contained in:
26
doc/examples/static-template/README.md
Normal file
26
doc/examples/static-template/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# static site with templates
|
||||
|
||||
consult [Dockerfile](Dockerfile) or [docker-compose.yml](docker-compose.yml) - both are simple and fine enough.
|
||||
|
||||
---
|
||||
|
||||
same as [simple static site](../basic/README.md).
|
||||
|
||||
configuration:
|
||||
|
||||
```nginx
|
||||
server {
|
||||
listen 8080;
|
||||
}
|
||||
```
|
||||
|
||||
Also note that there's no `index.html` but `index.html.j2`:
|
||||
|
||||
```jinja
|
||||
<hmtl>
|
||||
<body>
|
||||
<h1>Hello World</h1>
|
||||
This image is powered by Angie {% if env.NGX_PRO == '1' %}PRO{% else %}OSS{% endif %} {{ env.ANGIE_VERSION }} and Python {{ env.PYTHON_VERSION }}.
|
||||
</body>
|
||||
</hmtl>
|
||||
```
|
Reference in New Issue
Block a user