-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: minimal plugin and template system
- Loading branch information
Showing
5 changed files
with
101 additions
and
42 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,11 @@ | ||
export const loadEager = (doc, context) => { | ||
console.log('plugin qux: eager', context); | ||
}; | ||
|
||
export const loadLazy = (doc, context) => { | ||
console.log('plugin qux: lazy', context); | ||
}; | ||
|
||
export const loadDelayed = (doc, context) => { | ||
console.log('plugin qux: delayed', context); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const loadEager = (doc, context) => { | ||
console.log('bar: eager', context); | ||
}; | ||
|
||
export const loadLazy = (doc, context) => { | ||
console.log('bar: lazy', context); | ||
}; | ||
|
||
export const loadDelayed = (doc, context) => { | ||
console.log('bar: delayed', context); | ||
}; |
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,11 @@ | ||
export const loadEager = (doc, context) => { | ||
console.log('template foo: eager', context); | ||
}; | ||
|
||
export const loadLazy = (doc, context) => { | ||
console.log('template foo: lazy', context); | ||
}; | ||
|
||
export const loadDelayed = (doc, context) => { | ||
console.log('template foo: delayed', context); | ||
}; |