-- packages/view.wo — the VIEW for /packages and /packages/:name. -- -- Three components: a card for the index, the index itself (holding its -- cards as CHILDREN through the structural interface), and the detail -- page. None of them knows where the catalogue came from. use view pub class PackageCard { name: Text summary: Text fn render() -> Text { return `
{{ self.summary }}
A package is a git repository with a
wo.toml that says kind = "library". There is no
registry and no publish step: you depend on a URL and a revision, and
wo.lock pins exactly what you built against. These are the
libraries this site itself is built on.
{{ self.summary }}
Add it to your wo.toml. The
KEY is the module name — that is what use imports.