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 files adjacent to the .marko file.
foo.marko
foo.style.cssHere, the <foo> tag has associated styles.
When the file is named index.marko the prefix is optional. A tag in its own folder may also have a marko-tag.json beside it.
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.