content ¶
    
     
      content
     
    
    takes a string, which gets interpreted as rst-code for the need-content area.
Jinja support is also available, so that service data is available and can be accessed like
    
     
      {{data.description}}
     
    
    .
   
Example for the Excel service configuration:
excel_content = """
{% if info in data %}
{{data.info}}
{% else %}
{{data.description}}
{% endif %}
"""
needs_services = {
'excel_config': {
    # ... some other values
    'content': excel_content
    }
}
    
    The set options for the
    
     
      needservice
     
    
    are available  under
    
     
      options
     
    
    . Example:
   
my_content = """
Data retrieved from file: {{options.file}}
{{data.description}}
{% if options.mapping.status == "is_open" %}
**OPEN TASKS**
{% endif %}
"""