Awesome
koa-webc-examples
Samples of koa-webc middleware
001-hello-world
Basic usage of this Koa-WebC middleware
002-counter-button
Sampling how WebC scopes styles, scripts and provides a uid attribute to keep unique id's inside a component
003-import-and-use-components
How to import one component inside another, so you can modularize your templates
004-using-with-other-middlewares
Combining several Koa middlewares into the same project, so you get all the nice stuff from Koa ecosystem
005-pass-custom-data
Every WebC template gets injected with Koa context from the handler, you have to do nothing
However, in order to offer a more clean way to feed your templates with data, you can pass extra data to it when defining the middleware and also when calling ctx.render()
006-webc-for-loops
New in WebC 0.11.0. Loop syntax landed, this is how it works.
007-define-component
If you don't want to express how to import components explicitly, pass the
defineComponents
to koa-webc, so it will pass it to WebC so you don't have to
webc:import every single component you wish to use.