我有一行需要根据变量显示/隐藏,如下所示: -
{{#if ShowCamValue == true}}
<div class="row">
<div class="cell">
CAM (SF)
</div>
{{#each Properties}}
<div class="cell">
{{Property.Cam}}
</div>
{{/each}}
</div>
{{/if}}
即使这是真的(即ShowCamValue等于“true”),它仍然不显示该行。任何想法发生了什么。
答案 0 :(得分:0)
你这样做,
2017-07-17 19:20:54,998 - cwlogs.threads - ERROR - 28422 - Thread-11 -
Exception caught in <EventBatchPublisher(Thread-11, started daemon
140656144017152)>
Traceback (most recent call last):
File "/var/awslogs/local/lib/python2.7/site-
packages/cwlogs/threads.py", line 58, in run
self._run()
File "/var/awslogs/local/lib/python2.7/site-packages/cwlogs/push.py",
line 1402, in _run
self._publish_event_batch()
File "/var/awslogs/local/lib/python2.7/site-packages/cwlogs/push.py",
line 1209, in _publish_event_batch
self.sequence_token = self._put_log_events(self.event_batch)
File "/var/awslogs/local/lib/python2.7/site-packages/cwlogs/push.py",
line 1247, in _put_log_events
response = self.logs_service.put_log_events(**params)
File "/var/awslogs/local/lib/python2.7/site-
packages/botocore/client.py", line 253, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/var/awslogs/local/lib/python2.7/site-
packages/botocore/client.py", line 530, in _make_api_call
operation_model, request_dict)
File "/var/awslogs/local/lib/python2.7/site-
packages/botocore/endpoint.py", line 141, in make_request
return self._send_request(request_dict, operation_model)
File "/var/awslogs/local/lib/python2.7/site-
packages/botocore/endpoint.py", line 170, in _send_request
success_response, exception):
EndpointConnectionError: Could not connect to the endpoint URL:
"https://logs.us-east-1.amazonaws.com/"
2017-07-17 19:21:55,927 - cwlogs.push.reader - INFO - 28422 - Thread-12
- Reader is leaving as requested...
而非{{#if ShowCamValue}}
在车把中无效。
并检查每个帮助器语法,您还没有定义==
。你可以使用Property
this