mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Make eleventy js templates asynchronus
This commit is contained in:
parent
bb40fd294c
commit
84355645bf
4 changed files with 16 additions and 10 deletions
|
|
@ -25,7 +25,7 @@ module.exports = function ( eleventyConfig ) {
|
|||
const cssManager = new InlineCodeManager()
|
||||
const jsManager = new InlineCodeManager()
|
||||
|
||||
eleventyConfig.addJavaScriptFunction('usingComponent', function ( componentName ) {
|
||||
eleventyConfig.addJavaScriptFunction('usingComponent', async function ( componentName ) {
|
||||
// console.log('Getting component', componentName)
|
||||
|
||||
if ( componentName.includes('.js') ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue