-
Notifications
You must be signed in to change notification settings - Fork 965
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
mj-include - allow absolute paths #1546
Comments
As it turns out, this functionality exist via the I do think the It's basic but this was a work around for me.
|
@araphiel actually all the mjml2html options can be used with the cli with |
Thanks for reaching out @kmcb777 Just tested it out (using the command below) & the mj-include partials didn't compile.
Maybe mjml/packages/mjml-cli/src/client.js Line 100 in da9825c
mjml/packages/mjml-cli/src/client.js Line 175 in da9825c
|
You have to use relative path no absolute
… On 22 Mar 2019, at 06:43, Armon Raphiel ***@***.***> wrote:
Thanks for reaching out @kmcb777
Just tested it out (using the command below) & the mj-include partials didn't compile.
npx mjml archive/general/webinar_thank-you.mjml --config.filePath ./partials -o index.html
Maybe filePath needs to be explictly exposed via the CLI?
https://github.com/mjmlio/mjml/blob/da9825c1628aa4259feddb4bf5ccbcb5fa338b10/packages/mjml-cli/src/client.js#L100
https://github.com/mjmlio/mjml/blob/da9825c1628aa4259feddb4bf5ccbcb5fa338b10/packages/mjml-cli/src/client.js#L175
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ideal behavior
File: archive/index.mjml
<mj-include root="true" path="/partials/footer.mjml" />
Command:
npx mjml ./archive/**/*.mjml -o ./dist
Why?: This would allow larger teams to provide a consistent workspace + archive
The text was updated successfully, but these errors were encountered: