Skip to main content

There is a small. Single difference, single-quoted strings doesn'tdon't support interpolation:

{% set string = 'There is a #{car}.' %}

The above example won't work. If you want to use it, you need to wrap your string in double quotes:

{% set string = "There is a #{car}." %}

There is a small. Single-quoted strings doesn't support interpolation:

{% set string = 'There is a #{car}.' %}

won't work. If you want to use it, you need to wrap your string in double quotes:

{% set string = "There is a #{car}." %}

There is a small difference, single-quoted strings don't support interpolation:

{% set string = 'There is a #{car}.' %}

The above example won't work. If you want to use it, you need to wrap your string in double quotes:

{% set string = "There is a #{car}." %}
Source Link
nicael
  • 2.4k
  • 7
  • 28
  • 48

There is a small. Single-quoted strings doesn't support interpolation:

{% set string = 'There is a #{car}.' %}

won't work. If you want to use it, you need to wrap your string in double quotes:

{% set string = "There is a #{car}." %}