-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mj-include implementation with 2 loaders (filesystem, simple/generic)
- Loading branch information
Showing
39 changed files
with
620 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<mj-section css-class="bg-white"> | ||
<mj-column padding="32px 48px"> | ||
<mj-include path="circular-2.mjml" /> | ||
</mj-column> | ||
</mj-section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<mj-section css-class="bg-white"> | ||
<mj-column padding="32px 48px"> | ||
<mj-include path="circular-1.mjml" /> | ||
</mj-column> | ||
</mj-section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<mjml> | ||
<mj-body> | ||
|
||
<mj-section css-class="bg-white"> | ||
<mj-column> | ||
<mj-text padding="48px 48px 0 48px"> | ||
<p>This is the Index!</p> | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
|
||
<mj-include path="/circular/circular-1.mjml" /> | ||
</mj-body> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<mjml> | ||
<mj-head> | ||
<mj-include path="include/import-head-styles.mjml" /> | ||
</mj-head> | ||
<mj-body> | ||
<mj-text>test</mj-text> | ||
</mj-body> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<mjml> | ||
<mj-body> | ||
<mj-include path="include/styling.mjml" /> | ||
<mj-include path="include/header.mjml" /> | ||
|
||
<mj-section css-class="bg-white"> | ||
<mj-column> | ||
<mj-text padding="48px 48px 0 48px"> | ||
<p>This is the About!</p> | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
|
||
<mj-include path="include/footer.mjml" /> | ||
</mj-body> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<mjml> | ||
<mj-body> | ||
<mj-include path="include/styling.mjml" /> | ||
<mj-include path="include/header.mjml" /> | ||
|
||
<mj-section css-class="bg-white"> | ||
<mj-column> | ||
<mj-text padding="48px 48px 0 48px"> | ||
<p>This is the Index!</p> | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
|
||
<mj-include path="include/footer.mjml" /> | ||
<mj-include path="not-found.mjml" /> | ||
</mj-body> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<mjml> | ||
<mj-body> | ||
<mj-section> | ||
<mj-column> | ||
<mj-include type="css" path="include/type.css" /> | ||
</mj-column> | ||
<mj-column> | ||
<mj-include type="css" path="include/type2.css" /> | ||
</mj-column> | ||
<mj-column> | ||
<mj-include type="css" path="include/non-exist.css" /> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<mjml> | ||
<mj-body> | ||
<mj-section> | ||
<mj-column> | ||
<mj-include type="html" path="include/type.html" /> | ||
</mj-column> | ||
<mj-column> | ||
<mj-include type="html" path="include/non-exist.html" /> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<mj-include path="styling.mjml" /> | ||
|
||
<mj-section css-class="bg-white"> | ||
<mj-column padding="32px 48px"> | ||
<mj-text> | ||
<p>Cheers,</p> | ||
<p>Me!</p> | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section css-class="bg-white"> | ||
<mj-column> | ||
<mj-divider /> | ||
</mj-column> | ||
</mj-section> | ||
<mj-section css-class="bg-white"> | ||
<mj-column> | ||
<mj-text color="#2F5854" align="center" padding="8px 0"> | ||
<p>Something.com ©️ 2023</p> | ||
</mj-text> | ||
</mj-column> | ||
</mj-section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<mj-include path="styling.mjml" /> | ||
|
||
<mj-section css-class="bg-dark" padding="16px"> | ||
<mj-column> | ||
<mj-spacer height="32px" /> | ||
</mj-column> | ||
</mj-section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<mj-attributes><mj-text color='#ffffff' /></mj-attributes> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<mjml> | ||
<mj-head> | ||
<mj-font name="Open Sans" href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" /> | ||
<mj-style> | ||
.bg-dark { | ||
background: #2F5854 !important; | ||
} | ||
.bg-white { | ||
background: #FFFFFF !important; | ||
} | ||
p { | ||
font-size: 16px !important; | ||
font-weight: 400 !important; | ||
line-height: 24px !important; | ||
margin: 0; | ||
} | ||
</mj-style> | ||
<mj-attributes> | ||
<mj-body background-color="#EAEEEE" width="636px" /> | ||
<mj-divider border-width="1px" border-style="solid" border-color="#2F5854" padding="0 16px" /> | ||
<mj-all font-family="Open Sans" font-size="16px" font-weight="400" color="#1E3432" padding="0" align="left" /> | ||
</mj-attributes> | ||
</mj-head> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
h1 { | ||
color: red; | ||
} | ||
|
||
.my-custom-class { | ||
border: 1px solid red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div>hello world!</div> | ||
<hr> | ||
<table> | ||
<tbody><tr><td>a</td><td>b</td></tr></tbody> | ||
</table> | ||
|
||
<ul> | ||
<li>a | ||
<li>b | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
h2 { | ||
color: green; | ||
} | ||
|
||
.my-custom-class-2 { | ||
border: 1px solid green; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<mjml> | ||
<mj-head> | ||
<mj-attributes> | ||
<mj-all font-size="16px" font-weight="400" color="#1E3432" padding="0" align="left" /> | ||
</mj-attributes> | ||
</mj-head> | ||
<mj-body> | ||
<mj-section> | ||
<mj-column> | ||
<mj-divider /> | ||
</mj-column> | ||
</mj-section> | ||
</mj-body> | ||
</mjml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.