Is it possible to do something like:
{% set test = include 'parts/flight-search-form' %}
Or even something like:
{{ str_replace(
'[flight-search-form]',
partial("parts/flight-search-form", ['searchType': 'simple']),
obj.content
) }}
Second example always renders (echo's) the partial even tho if the shortcode is not present.