{% set_content_type %}

Use this tag to return a content type other than "text/html" in the HTTP response.

Syntax

{% set_content_type expression %}

Examples

{% set_content_type "application/xml" %}
{% var contenttype = "text/csv" %}
{% set_content_type contenttype %}
{% var contenttype = "csv" %}
{% set_content_type "text/" | append: contenttype %}

Developer Overview

Liquid Markup