Bipa
Bipa

Reputation: 281

why custom delimiters {{{}}} dont work in vuejs?

im just trying to use delimiters like {{{ content }}}

added

delimiters: ['{{{', '}}}']

to the Vue instance, but still have an error while running npm run build

- invalid expression: Unexpected token ) in

"\n        "+_s({content)+"}\n      "

Raw expression: {{{content}}}

My vuejs version is 1.1.40

What Im doing wrong?

Upvotes: 0

Views: 645

Answers (1)

Decade Moon
Decade Moon

Reputation: 34306

As mentioned in the docs:

Restrictions: This option is only available in the full build, with in-browser compilation.

If the template is being pre-compiled, you need to use {{ }}.

Upvotes: 2

Related Questions