Last active
September 28, 2024 04:30
-
-
Save jaredallard/4a98a26b5923c9dcd9da262f3b7aadc6 to your computer and use it in GitHub Desktop.
Example of how the new cross-module function calls work
This file contains hidden or 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
{{- define "HelloWorld" }} | |
Hello, world! | |
{{- end }} | |
# Exports the "define" template above allowing it to be called. | |
# Must be in a .library.tpl, as we are. Must start w/ capital | |
# letter. | |
{{- module.Export "HelloWorld" }} |
This file contains hidden or 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
# Output: Hello, world! | |
{{- module.Call "module-a.HelloWorld" }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment