-
-
Notifications
You must be signed in to change notification settings - Fork 682
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESM docs for WebC, Markdown 11ty/eleventy#836
- Loading branch information
Showing
15 changed files
with
189 additions
and
212 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,57 @@ | ||
<is-land on:visible import="/js/seven-minute-tabs.js"> | ||
<seven-minute-tabs persist sync class="tabs-flush"> | ||
{% renderFile "./src/_includes/syntax-chooser-tablist.11ty.js", {id: "webc-render"} %} | ||
<div id="webc-render-liquid" role="tabpanel"> | ||
|
||
{% raw %} | ||
```liquid | ||
{% renderTemplate "webc" %} | ||
<my-custom-component></my-custom-component> | ||
{% endrenderTemplate %} | ||
``` | ||
{% endraw %} | ||
|
||
</div> | ||
<div id="webc-render-njk" role="tabpanel"> | ||
|
||
{% raw %} | ||
```njk | ||
{% renderTemplate "webc" %} | ||
<my-custom-component></my-custom-component> | ||
{% endrenderTemplate %} | ||
``` | ||
{% endraw %} | ||
|
||
</div> | ||
<div id="webc-render-js" role="tabpanel"> | ||
|
||
{% raw %} | ||
```js | ||
export default async function () { | ||
let content = await this.renderTemplate( | ||
`<my-custom-component></my-custom-component>`, | ||
"webc" | ||
); | ||
return content; | ||
}; | ||
``` | ||
{% endraw %} | ||
|
||
</div> | ||
<div id="webc-render-cjs" role="tabpanel"> | ||
|
||
{% raw %} | ||
```js | ||
module.exports = async function () { | ||
let content = await this.renderTemplate( | ||
`<my-custom-component></my-custom-component>`, | ||
"webc" | ||
); | ||
return content; | ||
}; | ||
``` | ||
{% endraw %} | ||
|
||
</div> | ||
</seven-minute-tabs> | ||
</is-land> |
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.