Last active
January 30, 2024 03:47
-
-
Save svallory/ebe6ea0ea2e073c8898b1760c9250dba to your computer and use it in GitHub Desktop.
Marko Tags API Guide
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
<lifecycle onMount() { | |
console.log('Debug Tag', component); | |
}/> | |
<return=component/> |
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
<!-- | |
/** | |
* # Default Attribute | |
* We wanted to generalize Tag Arguments ( ), used in some internal Marko tags, | |
* with a syntax any tag can use. So we are introducing the Default Attribute. | |
* | |
* This assignment happens with no explicit attribute and instead is passed to | |
* the child component as "default". It is just a shorthand but it removes a lot | |
* of verbosities when the tag conceptually has a main value that is passed to it. | |
* | |
* All existing tags that accept an argument will use this syntax instead. | |
*/ | |
--> | |
<debugTag="someValue" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment