Skip to content

Instantly share code, notes, and snippets.

@svallory
Last active January 30, 2024 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svallory/ebe6ea0ea2e073c8898b1760c9250dba to your computer and use it in GitHub Desktop.
Save svallory/ebe6ea0ea2e073c8898b1760c9250dba to your computer and use it in GitHub Desktop.
Marko Tags API Guide
<lifecycle onMount() {
console.log('Debug Tag', component);
}/>
<return=component/>
<!--
/**
* # 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