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

Question: Remove top comment on mjml-cli usage (rendering a file) #2039

Closed
Kwaadpepper opened this issue Sep 22, 2020 · 3 comments
Closed

Question: Remove top comment on mjml-cli usage (rendering a file) #2039

Kwaadpepper opened this issue Sep 22, 2020 · 3 comments
Labels

Comments

@Kwaadpepper
Copy link

Is it possible to prevent mjml from adding a top comment when rendering a file ?
eg : <!-- FILE: resources/views/mails/level/test2.mjml --> ?

I tried --config.keepComments=0 without success.

Thank you.

@iRyusa
Copy link
Member

iRyusa commented Sep 22, 2020

Nope there's no option to disable it as it's specific to the cli not mjml-core. Maybe we can add a small flag to remove it @kmcb777

Note that it's not added when you output into a file

iRyusa pushed a commit that referenced this issue Jun 29, 2021
* feat: Add cli flag to omit file header comment on stdout

* docs: Add command line flag for omitting file header comment to docs, Cleanup markdown tables

* docs: Reformat table headers for cli flags

Overlooked on the first try ...
@iRyusa
Copy link
Member

iRyusa commented Jul 22, 2021

You have a new option in mjml-cli to remove the extra file name !

@iRyusa iRyusa closed this as completed Jul 22, 2021
@Kwaadpepper
Copy link
Author

Thank you sir :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants