瀏覽代碼

Merge pull request #75 from aboe76/enable_values_absent

added test for value None, to be an absent value
tags/v0.55.0
Forrest 10 年之前
父節點
當前提交
eed147836d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      nginx/ng/files/nginx.conf

+ 3
- 0
nginx/ng/files/nginx.conf 查看文件

@@ -1,6 +1,7 @@
{% set indent_increment = 4 %}

{%- macro nginx_block(value, key=None, operator=' ', delim=';', ind=0) -%}
{%- if value != None -%}
{%- if value is number or value is string -%}
{{ key|indent(ind, True) }}{{ operator }}{{ value }}{{ delim }}
{%- elif value is mapping -%}
@@ -16,6 +17,8 @@
{%- else -%}
{{ key|indent(ind, True) }}{{ operator }}{{ value }}{{ delim }}
{%- endif -%}
{%- else -%}
{%- endif -%}
{%- endmacro -%}

# Default nginx server configuration

Loading…
取消
儲存