Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape mustaches symbols #779

Closed
liquid36 opened this issue Feb 8, 2017 · 3 comments

Comments

@liquid36
Copy link

commented Feb 8, 2017

I'm wondering if there is a way to escape double mustaches symbols ({{ }}'). I'm developing a vue-cli template and I want to format the files to the standard.

import Vue from 'vue'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
{{#vuex}}
import store from '../store'{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
{{/vuex}}

const API_URL = process.env.API_URL{{#if_eq lintConfig "airbnb"}};{{/if_eq}}

Thanks!

@feross feross added the question label Feb 8, 2017

@feross

This comment has been minimized.

Copy link
Member

commented Feb 8, 2017

Are you linting that file with the {{ symbols included? That won't work. I assume you want to lint it after the template is applied, right?

@liquid36

This comment has been minimized.

Copy link
Author

commented Feb 8, 2017

I'm writing a templete, so i am not liting that file but i want to format it in order to the resulting file follow the standar and could be liting.

@feross

This comment has been minimized.

Copy link
Member

commented Feb 8, 2017

Sorry, I don't understand your question. If you're linting the output after the template has been processed then you shouldn't have any {{ left in the file. So, what is your question?

@feross feross closed this Feb 9, 2017

@lock lock bot locked as resolved and limited conversation to collaborators May 10, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.