A declarative, HTML-based language that makes building web apps fun
A declarative, HTML-based language that makes building web apps fun
Marko is HTML reimagined as a language for building dynamic and reactive user interfaces. Almost any valid HTML is valid Marko, and Marko extends HTML for building modern applications more declaratively. Among these extensions are components, conditionals and loops, and a full reactivity system.
The following renders a button and a counter of how many times the button has been pressed:
click-count.marko
// HTML + JavaScript = 💜
<let/count=0>
<button onClick() { count++ }>
Clicked ${count} times
</button>npm init markoHang out in our Discord server to ask questions & discuss marko |
Marko would not be what it is without all those who have contributed ✨
`catch` not rendering in SSR mode
Component re-exported from a .ts module breaks hydration in production builds (crash with a sibling event handler, silently dead without)
Feat Request: Stale-while-revalidate in <await>
`<await>` tag doesn't render correctly with `client-reorder` when inside `<table>` element
[Feature Request] Native context API for Marko v6 (setContext/getContext)
Docs for using custom elements with Marko
OpenJS Best Practices: Website Updates
tag to handle streams
Marko 5 ESM Loading/Registering
CLI bin console style enhancement.