Custom Tag Discovery
Custom Tags in Marko allow for reusing markup across the application.
Priority
When you use a <Tag> in Marko it is resolved in the following order:
Supporting Files
Marko discovers style and marko-tag.json files adjacent to the .marko file.
foo.marko
foo.style.css
foo.marko-tag.jsonHere, the <foo> tag has associated styles and metadata.
When the file is named index.marko the prefix is optional.
tags/
bar/
index.marko
style.css
baz/
index.marko
marko-tag.jsonHere, the <bar> tag has an associated style.css and the <baz> tag has an associated marko-tag.json.
For style files any extension may be used allowing for CSS preprocessors.
tags/
less/
index.marko
style.less
scss/
index.marko
style.scssContributors
Helpful? You can thank these awesome people! You can also edit this doc if you see any issues or want to improve it.